Part Number Hot Search : 
13000 36123 68100 8805GEDS BB302C 74HC42P 78M06 MN101
Product Description
Full Text Search
 

To Download MCP3901 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2011 microchip technology inc. ds22192d-page 1 MCP3901 features ? two synchronous sampling 16/24-bit resolution delta-sigma a/d converters with proprietary multi-bit architecture ? 91 db sinad, -104 dbc total harmonic distortion (thd) (up to 35 th harmonic), 109 db spurious-free dynamic range (sfdr) for each channel ? programmable data rate up to 64 ksps ? ultra low-power shutdown mode with <2 a ? -133 db crosstalk between the two channels ? low drift internal voltage reference: 12 ppm/c ? differential voltage reference input pins ? high gain pga on each channel (up to 32 v/v) ? phase delay compensation between the two channels with 1 s time resolution ? separate modulator outputs for each channel ? high-speed, addressable 20 mhz spi interface with mode 0,0 and 1,1 compatibility ? independent analog and digital power supplies: 4.5v-5.5v av dd , 2.7v-5.5v dv dd ? low-power consumption: (14 mw typical at 5v) ? available in small 20-lead ssop and qfn packages ? industrial temperature ranges: - industrial: -40c to +85c - extended: -40c to +125c applications ? energy metering and power measurement ? automotive ? portable instrumentation ? medical and power monitoring description the MCP3901 is a dual channel analog front end (afe) containing two synchronous sampling delta- sigma analog-to-digital converters (adc), two pgas, phase delay compensation block internal voltage reference, modulator output block, and high-speed 20 mhz spi compatible serial interface. the converters contain a proprietary dithering algorithm for reduced idle tones and improved thd. the internal register map contains 24-bit wide adc data words, a modulator output byte, as well as six writable control registers to program gain, oversampling ratio, phase, resolution, dithering, shutdown, reset and several communication features. the communication is largely simplified with various continuous read modes that can be accessed by the direct memory access (dma) of an mcu and with a separate data ready pin that can be connected directly to an interrupt request (irq) input of an mcu. the MCP3901 is capable of interfacing to a large variety of voltage and current sensors, including shunts, current transformers, rogowski coils and hall- effect sensors. package type osc1/clki 1 2 3 4 20 19 18 17 16 15 14 13 5 6 7 8 osc2 sdi reset dv dd av dd ch0+ ch0- ch1- 12 9 dgnd mdat0 mdat1 dr ch1+ agnd sdo 11 10 refin/out+ refin- cs sck 20-lead ssop 5 2 ep 20 1 19 18 17 3 4 15 14 13 12 6789 21 10 11 16 ch0+ ch0- ch1- ch1+ agnd refin- refin/out+ dgnd mdat1 mdat0 osc1/clki osc2 dr cs sck sdo sdi reset dv dd av dd 20-lead qfn * includes exposed thermal pad (ep); see ta b l e 3 - 1 . two-channel analog front end
MCP3901 ds22192d-page 2 ? 2011 microchip technology inc. functional block diagram ch0+ ch0- ch1+ ch1- sdo sdi sck dual ds adc sinc 3 - + pga xtal oscillator mclk osc1 osc2 dr reset digital spi interface clock generation sinc 3 - + pga modulator amclk dmclk/drclk modulator output block mdat1 mdat0 dmclk phase shifter phase <7:0> osr<1:0> pre<1:0> data_ch0<23:0> data_ch1<23:0> modout<1:0> mod<7:0> cs refin/out+ refin - av dd agnd dgnd dv dd por av dd monitoring por modulator v ref + v ref - vrefext voltage reference v ref + - - - analog digital sdn<1:0>, reset<1:0>, gain<7:0>
? 2011 microchip technology inc. ds22192d-page 3 MCP3901 1.0 electrical characteristics absolute maximum ratings ? v dd ...................................................................................7.0v digital inputs and outputs w.r.t. a gnd ........ -0.6v to v dd +0.6v analog input w.r.t. a gnd ..................................... ....-6v to +6v v ref input w.r.t. a gnd ............................... -0.6v to v dd +0.6v storage temperature .....................................-65c to +150c ambient temp. with power applied ................-65c to +125c soldering temperature of leads (10 seconds) ............. +300c esd on the analog inputs (hbm,mm) ................. 7.0 kv, 400v esd on all other pins (hbm,mm) ........................7.0 kv, 400v ? notice: stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at those or any ot her conditions, above those indi- cated in the operational listings of this specification, is not implied. exposure to maximum rating conditions for extended periods may affect device reliability. electrical characteristics electrical specifications: unless otherwise indicated, av dd = 4.5 to 5.5v, dv dd = 2.7 to 5.5v; -40c < t a < +85c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = - 0 . 5 dbfs = 333 mv rms @ 50/60 hz parameters symbol min typical max units conditions internal voltage reference internal voltage reference to l e r a n c e v ref -2% 2.37 +2% v vrefext = 0 temperature coefficient tc ref ? 12 ? ppm/c vrefext = 0 output impedance zout ref ?7?k av dd = 5v, vrefext = 0 voltage reference input input capacitance ? ? 10 pf differential input voltage range (v ref+ ? v ref- ) v ref 2.2 ? 2.6 v v ref = (v ref+ ? v ref- ), vrefext = 1 absolute voltage on refin+ pin v ref+ 1.9 ? 2.9 v vrefext = 1 absolute voltage on refin- pin v ref- -0.3 ? 0.3 v adc performance resolution (no missing codes) 24 ? ? bits osr = 256 (see ta b l e 5 - 3 ) sampling frequency f s see ta b l e 4 - 2 khz f s = dmclk = mclk/ (4 x prescale) note 1: this specification implies that the adc output is valid over this entire differential range and that there is no distortion or instability across this input range. dynamic performance is specified at -0.5 db below the maximum signal range, v in = -0.5 dbfs @ 50/60 hz = 353 mv rms, v ref = 2.4v. 2: see terminology section for definition. 3: this parameter is established by characterization and not 100% tested. 4: for these operating currents, the following bit settings apply: shutdown<1:0> = 00 , reset<1:0> = 00 , vrefext = 0 , clkext = 0 . 5: for these operating currents, the following configuration bit settings apply: shutdown<1:0> = 11 , vrefext = 1 , clkext = 1 . 6: applies to all gains. offset error is dependant on pga gain setting (see figure 2-19 for typical values). 7: outside of this range, the adc accuracy is not specified. an extended input range of 6v can be applied continuously to the part with no risk for damage. 8: for proper operation and to keep adc accuracy, amclk should always be in the range of 1 to 5 mhz with boost bits off. with boost bits on, amclk should be in the range of 1 to 8.192 mhz, amclk = mclk/prescale. when using a crystal, the clkext bit should be equal to ? 0 ?.
MCP3901 ds22192d-page 4 ? 2011 microchip technology inc. output data rate f d see ta b l e 4 - 2 ksps f d = drclk = dmclk/ osr = mclk/ (4 x prescale x osr) analog input absolute voltage on ch0+, ch0-, ch1+, ch1- pins chn+ -1 ? +1 v all analog input channels, measured to agnd ( note 7 ) analog input leakage current a in ?1?na ( note 4 ) ?2?na-40c < t a < 125c differential input voltage range (chn+ ? chn-) ? ? 500/gain mv ( note 1 ) offset error ( note 2 ) v os -3 ? +3 mv ( note 6 ) offset error drift ? 3 ? v/c from -40c to +125c gain error ( note 2 ) ge ? -0.4 ? % g = 1 -2.5 ? +2.5 % all gains gain error drift ? 1 ? ppm/c from -40c to +125c integral nonlinearity ( note 2 ) inl ? 15 ? ppm gain = 1 , dither = on input impedance z in 350 ? ? k proportional to 1/amclk signal-to-noise and distortion ratio ( notes 2 , 3 ) sinad 89 91 ? db osr = 256, dither = on 78 79 ? db total harmonic distortion ( notes 2 , 3 ) thd ? -104 -102 db osr = 256, dither = on ?-85-84db signal-to-noise ratio ( notes 2 , 3 ) snr 89 91 ? db osr = 256, dither = on 80 81 ? db spurious free dynamic range ( note 2 ) sfdr ? 109 ? db osr = 256, dither = on ?87?db crosstalk (50/60 hz) ( note 2 ) ctalk ? -133 ? db osr = 256, dither = on electrical characteristics (continued) electrical specifications: unless otherwise indicated, av dd = 4.5 to 5.5v, dv dd = 2.7 to 5.5v; -40c < t a < +85c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = - 0 . 5 dbfs = 333 mv rms @ 50/60 hz parameters symbol min typical max units conditions note 1: this specification implies that the adc output is valid over this entire differential range and that there is no distortion or instability across this input range. dynamic performance is specified at -0.5 db below the maximum signal range, v in = -0.5 dbfs @ 50/60 hz = 353 mv rms, v ref = 2.4v. 2: see terminology section for definition. 3: this parameter is established by characterization and not 100% tested. 4: for these operating currents, the following bit settings apply: shutdown<1:0> = 00 , reset<1:0> = 00 , vrefext = 0 , clkext = 0 . 5: for these operating currents, the following configuration bit settings apply: shutdown<1:0> = 11 , vrefext = 1 , clkext = 1 . 6: applies to all gains. offset error is dependant on pga gain setting (see figure 2-19 for typical values). 7: outside of this range, the adc accuracy is not specified. an extended input range of 6v can be applied continuously to the part with no risk for damage. 8: for proper operation and to keep adc accuracy, amclk should always be in the range of 1 to 5 mhz with boost bits off. with boost bits on, amclk should be in the range of 1 to 8.192 mhz, amclk = mclk/prescale. when using a crystal, the clkext bit should be equal to ? 0 ?.
? 2011 microchip technology inc. ds22192d-page 5 MCP3901 ac power supply rejection ac psrr ? -77 ? db av dd and dv dd = 5v + 1v pp @ 50/60 hz dc power supply rejection dc psrr ? -77 ? db av dd and dv dd = 4.5 to 5.5v dc common-mode rejection ratio ( note 2 ) cmrr ? -72 ? db v cm varies from -1v to +1v oscillator input master clock frequency range mclk 1 ? 16.384 mhz ( note 8 ) power specifications operating voltage, analog av dd 4.5 ? 5.5 v operating voltage, digital dv dd 2.7 3.6 5.5 v power on reset threshold por ? 4.2 ? v ( note 3 ) ? 4.6 ? -40c < t a < 125c , ( note 3 ) operating current, analog ( note 4 ) ai dd ? 2.1 2.8 ma boost<1:0> = 00 ? 2.1 3.3 ma -40c < t a < 125c , boost<1:0> = 00 ? 3.8 5.6 ma boost<1:0> = 11 ? 3.8 7 ma -40c < t a < 125c , boost<1:0> = 11 operating current, digital di dd ?0.451.0madv dd = 5v, mclk = 4 mhz ? 0.25 0.45 ma dv dd = 2.7v, mclk = 4 mhz ?1.21.6madv dd = 5v, mclk = 8.192 mhz shutdown current, analog i dds,a ?? 1 aav dd pin only ( note 5 ) shutdown current, digital i dds,d ?? 1 adv dd pin only ( note 5 ) electrical characteristics (continued) electrical specifications: unless otherwise indicated, av dd = 4.5 to 5.5v, dv dd = 2.7 to 5.5v; -40c < t a < +85c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = - 0 . 5 dbfs = 333 mv rms @ 50/60 hz parameters symbol min typical max units conditions note 1: this specification implies that the adc output is valid over this entire differential range and that there is no distortion or instability across this input range. dynamic performance is specified at -0.5 db below the maximum signal range, v in = -0.5 dbfs @ 50/60 hz = 353 mv rms, v ref = 2.4v. 2: see terminology section for definition. 3: this parameter is established by characterization and not 100% tested. 4: for these operating currents, the following bit settings apply: shutdown<1:0> = 00 , reset<1:0> = 00 , vrefext = 0 , clkext = 0 . 5: for these operating currents, the following configuration bit settings apply: shutdown<1:0> = 11 , vrefext = 1 , clkext = 1 . 6: applies to all gains. offset error is dependant on pga gain setting (see figure 2-19 for typical values). 7: outside of this range, the adc accuracy is not specified. an extended input range of 6v can be applied continuously to the part with no risk for damage. 8: for proper operation and to keep adc accuracy, amclk should always be in the range of 1 to 5 mhz with boost bits off. with boost bits on, amclk should be in the range of 1 to 8.192 mhz, amclk = mclk/prescale. when using a crystal, the clkext bit should be equal to ? 0 ?.
MCP3901 ds22192d-page 6 ? 2011 microchip technology inc. serial interface specifications electrical specifications: unless otherwise indicated, all parameters apply: av dd = 4.5 to 5.5v, dv dd = 2.7 to 5.5v, -40c < t a < +85c, c load = 30 pf parameters sym min typ max units conditions serial clock frequency f sck ? ? ? ? 20 10 mhz mhz 4.5 dv dd 5.5 2.7 dv dd < 5.5 cs setup time t css 25 50 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd 5.5 cs hold time t csh 50 100 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 cs disable time t csd 50 ? ? ns data setup time t su 5 10 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 data hold time t hd 10 20 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 serial clock high time t hi 20 50 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 serial clock low time t lo 20 50 ? ? ? ? ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 serial clock delay time t cld 50 ? ? ns serial clock enable time t cle 50 ? ? ns output valid from sck low t do ? ? 50 ns 2.7 dv dd < 5.5 modulator output valid from amclk high t domdat ? ? 1/2 * amclk s output hold time t ho 0??ns ( note 1 ) output disable time t dis ? ? ? ? 25 50 ns ns 4.5 dv dd 5.5 2.7 dv dd < 5.5 ( note 1 ) reset pulse width (reset )t mclr 100 ? ? ns 2.7 dv dd < 5.5 data transfer time to dr (data ready) t dodr ? ? 50 ns 2.7 dv dd < 5.5 data ready pulse low time t drp ?1/dmclk ? s2.7 dv dd < 5.5 schmitt trigger high-level input voltage v ih1 .7 dv dd ?dv dd + 1 v schmitt trigger low-level input voltage v il1 -0.3 ? 0.2 dv dd v hysteresis of schmitt trigger inputs (all digital inputs) v hys 300 ? ? mv low-level output voltage, sdo pin v ol ? ? 0.4 v sdo pin only, i ol = +2.0 ma, v dd = 5.0v low-level output voltage, dr and mdat pins v ol ??0.4vdr and mdat pins only, i ol = +800 ma, v dd = 5.0v high-level output voltage, sdo pin v oh dv dd ? 0.5 ? ? v sdo pin only, i oh = -2.0 ma, v dd = 5.0v high-level output voltage, dr and mdat pins v oh dv dd ? 0.5 ? ? v dr and mdat pins only, i oh = -800 a, v dd = 5.0v input leakage current i li ?? 1acs = dv dd , v in = dgnd or dv dd output leakage current i lo ?? 1acs = dv dd , v out = dgnd or dv dd internal capacitance (all inputs and outputs) c int ?? 7pft a = 25c, sck = 1.0 mhz, dv dd = 5.0v ( note 1 ) note 1: this parameter is periodically sampled and not 100% tested.
? 2011 microchip technology inc. ds22192d-page 7 MCP3901 figure 1-1: serial output timing diagram. figure 1-2: serial input timing diagram. temperature characteristics electrical specifications: unless otherwise indicated, all parameters apply at av dd = 4.5 to 5.5v, dv dd = 2.7 to 5.5v parameters sym min typ max units conditions temperature ranges operating temperature range t a -40 ? +125 c ( note 1 ) storage temperature range t a -65 ? +150 c thermal package resistances thermal resistance, 20l ssop ja ?89.3 ? c/w thermal resistance, 20l qfn ja ?43 ? c/w note 1: the internal junction temperature (t j ) must not exceed the absolute maximum specification of +150c. t csh t dis t hi t lo f sck cs sck sdo msb out lsb out don?t care sdi mode 1,1 mode 0,0 t ho t do cs sck sdi lsb in msb in mode 1,1 mode 0,0 t css t su t hd t csd t csh t cld t cle sdo hi-z t hi t lo f sck
MCP3901 ds22192d-page 8 ? 2011 microchip technology inc. figure 1-3: data ready pulse timing diagram. h figure 1-4: specific timing diagrams. figure 1-5: MCP3901 clock detail. dr sck sdo 1/drclk t dodr t drp cs v ih timing waveform for t dis hi-z 90% 10% t dis sdo sck sdo t do timing waveform for t do mdat0/1 osc1/clki timing waveform for mdat0/1 modulator output t domdat clkext 1 0 prescale<1:0> 1/ mclk amclk 1/4 dmclk 1/osr drclk osr<1:0> multiplexer clock divider clock divider clock divider crystal oscillator osc1 osc2 1/prescale f s adc sampling rate f d adc output data rate digital buffer
? 2011 microchip technology inc. ds22192d-page 9 MCP3901 2.0 typical performance curves note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-1: spectral response. figure 2-2: spectral response. figure 2-3: spectral response. figure 2-4: spectral response. figure 2-5: spectral response. figure 2-6: spectral response. note: the graphs and tables provided following this note are a statistical summary based on a limited number of samples and are provided for informational purposes only. the performance characteristics listed herein are not tested or guaranteed. in some graphs or tables, the data presented may be outside the specified operating range (e.g., outside specified power supply range) and therefore, outside the warranted range. -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 frequency (hz) amplitude (db) f in = -0.5dbfs @ 60 hz f d = 3.9 ksps 16384 point fft osr = 256 dithering on -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 frequency (hz) amplitude (db) f in = -60dbfs @ 60 hz f d = 3.9 ksps 16384 point fft osr = 256 dithering on -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 frequency (hz) amplitude (db) f in = -0.5dbfs @ 60 hz f d = 3.9 ksps osr = 256 16384 points dithering off -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 500 1000 1500 2000 frequency (hz) amplitude (db) f in = -60dbfs @ 60 hz f d = 3.9 ksps 16384 point fft osr = 256 dithering off -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 2000 4000 6000 8000 frequency (hz) amplitude (db) f in = -0.5dbfs @ 60 hz f d = 15.6 ksps 16384 point fft osr = 64 dithering off -160 -140 -120 -100 -80 -60 -40 -20 0 0 2000 4000 6000 8000 frequency (hz) amplitude (db) f in = -60dbfs @ 60 hz f d = 15.6 ksps 16384 point fft osr = 64 dithering off
MCP3901 ds22192d-page 10 ? 2011 microchip technology inc. note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-7: spectral response. figure 2-8: spectral response. figure 2-9: spurious free dynamic range histogram. figure 2-10: spurious free dynamic range vs. oversampling ratio. figure 2-11: signal-to-noise and distortion and effective number of bits vs. oversampling ratio. figure 2-12: signal-to-noise and distortion vs. gain. -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 2000 4000 6000 8000 frequency (hz) amplitude (db) f in = -0.5dbfs @ 60 hz f d = 15.6 ksps 16384 point fft osr = 64 dithering on -200 -180 -160 -140 -120 -100 -80 -60 -40 -20 0 0 2000 4000 6000 8000 frequency (hz) amplitude (db) f in = -60dbfs @ 60 hz f d = 15.6 ksps 16384 point fft osr = 64 dithering on 0 2 4 6 8 1 0 1 2 107 107.5 108 108.5 109 109.5 110 110.5 111 spurious free dynamic range (db) frequency of occurance f in = 60 hz mclk = 4 mhz osr = 256 dithering on 0 10 20 30 40 50 60 70 80 90 100 110 120 32 64 128 256 oversampling ratio (osr) spurious free dynamic range (db) dithering off dithering on 50 55 60 65 70 75 80 85 90 95 100 32 64 128 256 oversampling ratio (osr) sinad (db) 8 9 10 11 12 13 14 15 16 effective number of bits dithering on dithering off 40 45 50 55 60 65 70 75 80 85 90 95 1 2 4 8 16 32 gain (v/v) sinad (db) osr = 256 (dithering on) osr = 32 osr = 64 osr = 128 (dithering on)
? 2011 microchip technology inc. ds22192d-page 11 MCP3901 note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-13: signal-to-noise and distortion vs. gain (dithering on). figure 2-14: total harmonic distortion vs. oversampling ratio. figure 2-15: total harmonic distortion vs. input signal frequency. figure 2-16: total harmonic distortion histogram (dithering on). figure 2-17: total harmonic distortion vs. temperature. figure 2-18: signal-to-noise and distortion vs. input frequency. 40 45 50 55 60 65 70 75 80 85 90 95 12481632 gain (v/v) sinad (db) osr = 256 osr = 32 osr = 64 osr = 128 -120 -100 -80 -60 -40 -20 0 32 64 128 256 oversampling ratio (osr) total harmonic distortion (dbc) dithering on dithering off -80 -60 -40 -20 0 20 40 60 80 100 10 100 1000 10000 input signal frequency (hz) total harmonic distortion (dbc) f d = 15.625 ksps sinc filter notch at 15.625 hz 0 2 4 6 8 10 12 14 -105.0 -104.5 -104.0 -103.5 -103.0 -102.5 -102.0 total harmonic distortion (dbc) frequency of occurance f in = 60 hz mclk = 4 mhz osr = 256 dithering on -120 -100 -80 -60 -40 -20 0 -50 -25 0 25 50 75 100 125 150 temperature (oc) total harmonic distortion (dbc) 0 10 20 30 40 50 60 70 80 90 10 100 1000 10000 input signal frequency (hz) sinad (db) f d = 15.625 ksps sinc filter notch at 15.625 hz
MCP3901 ds22192d-page 12 ? 2011 microchip technology inc. note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-19: signal-to-noise and distortion histogram. figure 2-20: signal-to-noise and distortion vs. temperature. figure 2-21: signal-to-noise and distortion vs. input signal amplitude. figure 2-22: channel 0 offset vs. temperature. figure 2-23: channel 1 offset vs. temperature. figure 2-24: channel-to-channel offset match vs. temperature. 0 2 4 6 8 10 12 78.9 79 79.1 79.2 79.3 79.4 79.5 79.6 79.7 79.8 sinad (db) frequency of occurance f in = 60 hz mclk = 4 mhz osr = 64 dithering off 0 10 20 30 40 50 60 70 80 90 100 -50 -25 0 25 50 75 100 125 150 temperature (oc) sinad (db) -40 -20 0 20 40 60 80 100 0 20406080 input amplitude (dbfs) sinad (db) - --- -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 -50 -25 0 25 50 75 100 125 150 temperature (oc) offset error (mv) g=8 g=16 g=1 g=32 g=4 g=2 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 -50-25 0 25 50 75100125150 temperature (c) offset error (mv) g=8 g=1 g=16 g=32 g=2 g=4 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 -50 -25 0 25 50 75 100 125 150 temperature (c) offset error (mv) channel 0 channel 1
? 2011 microchip technology inc. ds22192d-page 13 MCP3901 note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-25: positive gain error vs. temperature. figure 2-26: negative gain error vs. temperature figure 2-27: internal voltage reference vs. temperature. figure 2-28: internal voltage reference vs. supply voltage. figure 2-29: signal-to-noise and distortion vs. master clock (mclk), boost on. figure 2-30: noise histogram. -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 0 -50-25 0 25 50 75100125150 temperature (c) positive gain error (% fs) g=1 g=2 g=8 g=16 g=4 g=32 -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 0 -50-25 0 25 50 75100125150 temperature (c) negative gain error (% fs) g=1 g=2 g=8 g=16 g=4 g=32 2.35 2.36 2.37 2.38 2.39 2.4 -50 -25 0 25 50 75 100 125 150 temperature (c) int. voltage reference (v) 2.3713 2.37135 2.3714 2.37145 2.3715 2.37155 2.3716 2.37165 4.5 4.8 5.0 5.3 5.5 power supply (v) int. voltage reference (v) 0 10 20 30 40 50 60 70 80 90 100 357911 mclk frequency (mhz) sinad (db) 0 1000 2000 3000 4000 5000 6000 7000 8000 -3000 -2000 -1000 0 1000 2000 300 0 output code (lsb) frequency of occurence channel 0 v in = 0v t a = +25c 16384 consecutive readings 24-bit mode
MCP3901 ds22192d-page 14 ? 2011 microchip technology inc. note: unless otherwise indicated, av dd = 5.0v, dv dd = 5.0 v; t a = 25c, mclk = 4 mhz; prescale = 1 ; osr = 64; gain = 1 ; dithering off; v in = -0.5 dbfs @ 60 hz. figure 2-31: integral nonlinearity (dithering off). figure 2-32: integral nonlinearity (dithering on). figure 2-33: operating current vs. master clock (mclk). -100 -80 -60 -40 -20 0 20 40 60 80 100 -0.5 -0.25 0 0.25 0.5 input voltage (v) inl (ppm) channel 0 channel 1 osr = 256 dithering off sck = 8 mhz -50 -40 -30 -20 -10 0 10 20 30 40 50 -0.5 -0.25 0 0.25 0.5 input voltage (v) inl (ppm) channel 0 channel 1 osr = 256 dithering on sck = 8 mhz 0 0.5 1 1.5 2 2.5 0123456 mclk (mhz) i dd (ma) di dd ai dd boost off
? 2011 microchip technology inc. ds22192d-page 15 MCP3901 3.0 pin description the descriptions of the pins are listed in tab l e 3 - 1 . table 3-1: pin function table 3.1 r eset this pin is active low and places the entire chip in a reset state when active. when reset = 0 , all registers are reset to their default value, no communication can take place and no clock is distributed inside the part. this state is equivalent to a por state. since the default state of the adcs is on, the analog power consumption when reset = 0 is equivalent to when reset = 1 . only the digital power consumption is largely reduced because this current consumption is essentially dynamic and is reduced drastically when there is no clock running. all the analog biases are enabled during a reset so that the part is fully operational just after a reset rising edge. this input is schmitt triggered. 3.2 digital v dd (dv dd ) dv dd is the power supply pin for the digital circuitry within the MCP3901. this pin requires appropriate bypass capacitors and should be maintained between 2.7v and 5.5v for specified operation. 3.3 analog v dd (av dd ) av dd is the power supply pin for the analog circuitry within the MCP3901. this pin requires appropriate bypass capacitors and should be maintained to 5v 10% for specified operation. symbol pin no. function ssop qfn reset 1 18 master reset logic input pin dv dd 2 19 digital power supply pin av dd 3 20 analog power supply pin ch0+ 4 1 non-inverting analog input pin for channel 0 ch0- 5 2 inverting analog input pin for channel 0 ch1- 6 3 inverting analog input pin for channel 1 ch1+ 7 4 non-inverting analog input pin for channel 1 a gnd 8 5 analog ground pin, return path for internal analog circuitry refin+/out 9 6 non-inverting voltage reference input and internal reference output pin refin- 10 7 inverting voltage reference input pin d gnd 11 8 digital ground pin, return path for internal digital circuitry mdat1 12 9 modulator data output pin for channel 1 mdat0 13 10 modulator data output pin for channel 0 dr 14 11 data ready signal output pin osc1/clki 15 12 oscillator crystal connection pin or external clock input pin osc2 16 13 oscillator crystal connection pin cs 17 14 serial interface chip select pin sck 18 15 serial interface clock pin sdo 19 16 serial interface data output pin sdi 20 17 serial interface data input pin ep ? 21 exposed thermal pad. must be connected to agnd.
MCP3901 ds22192d-page 16 ? 2011 microchip technology inc. 3.4 adc differential analog inputs (chn+/chn-) ch0- and ch0+, and ch1- and ch1+, are the two fully differential analog voltage inputs for the delta-sigma adcs. the linear and specified region of the channels are dependent on the pga gain. this region corresponds to a differential voltage range of 500 mv/gain with v ref = 2.4v. the maximum absolute voltage, with respect to agnd, for each chn+/- input pin is 1v with no distortion and 6v with no breaking after continuous voltage. 3.5 analog ground (agnd) agnd is the ground connection to internal analog circuitry (adcs, pga, voltage reference, por). to ensure accuracy and noise cancellation, this pin must be connected to the same ground as dgnd, preferably with a star connection. if an analog ground plane is available, it is recommended that this pin be tied to this plane of the pcb. this plane should also reference all other analog circuitry in the system. 3.6 non-inverting reference input, internal reference output (refin+/out) this pin is the non-inverting side of the differential voltage reference input for both adcs or the internal voltage reference output. when vrefext = 1 , and an external voltage reference source can be used, the internal voltage ref- erence is disabled. when using an external differential voltage reference, it should be connected to its v ref + pin. when using an external single-ended reference, it should be connected to this pin. when vrefext = 0 , the internal voltage reference is enabled and connected to this pin through a switch. this voltage reference has minimal drive capability, and thus, needs proper buffering and bypass capacitances (10 f tantalum in parallel with 0.1 f ceramic) if used as a voltage source. for optimal performance, bypass capacitances should be connected between this pin and agnd at all times, even when the internal voltage reference is used. however, these capacitors are not mandatory to ensure proper operation. 3.7 inverting reference input (refin-) this pin is the inverting side of the differential voltage reference input for both adcs. when using an external differential voltage reference, it should be connected to its v ref- pin. when using an external, single-ended voltage reference, or when vrefext = 0 (default) and using the internal voltage reference, this pin should be directly connected to agnd. 3.8 digital ground connection (dgnd) dgnd is the ground connection to internal digital circuitry (sinc filters, oscillator, serial interface). to ensure accuracy and noise cancellation, dgnd must be connected to the same ground as agnd, preferably with a star connection. if a digital ground plane is available, it is recommended that this pin be tied to this plane of the printed circuit board (pcb). this plane should also reference all other digital circuitry in the system. 3.9 modulator data output pin for channel 1 and channel 0 (mdat1/mdat0) mdat0 and mdat1 are the output pins for the modulator serial bitstreams of adc channels 0 and 1, respectively. these pins are high-impedance by default. when the modout<1:0> are enabled, the modulator bitstream of the corresponding channel is present on the pin and updated at the amclk frequency. (see section 5.4 ?modulator output block? for a complete description of the modulator outputs.) these pins can be directly connected to a mcu or dsp when a specific digital filtering is needed. 3.10 dr (data ready pin) the data ready pin indicates if a new conversion result is ready to be read. the default state of this pin is high when dr_hizn = 1 and is high-impedance when dr_hizn = 0 (default). after each conversion is finished, a low pulse will take place on the data ready pin to indicate the conversion result is ready as an interrupt. this pulse is synchronous with the master clock and has a defined and constant width. the data ready pin is independent of the spi interface and acts like an interrupt output. the data ready pin state is not latched and the pulse width (and period) are both determined by the mclk frequency, over-sampling rate and internal clock prescale settings. the dr pulse width is equal to one dmclk period and the frequency of the pulses is equal to drclk (see figure 1-3 ). note: this pin should not be left floating when the dr_hizn bit is low; a 100 k pull-up resistor connected to d vdd is recommended.
? 2011 microchip technology inc. ds22192d-page 17 MCP3901 3.11 oscillator and master clock input pins (osc1/clki, osc2) osc1/clki and osc2 provide the master clock for the device. when clkext = 0 (default), a resonant crystal or clock source with a similar sinusoidal waveform must be placed across these pins to ensure proper operation. the typical clock frequency specified is 4 mhz. however, the clock frequency can be 1 mhz to 5 mhz without disturbing adc accuracy. with the current boost circuit enabled, the master clock can be used up to 8.192 mhz without disturbing adc accuracy. appropriate load capacitance should be connected to these pins for proper operation. 3.12 cs (chip select) this pin is the spi chip select that enables the serial communication. when this pin is high, no communication can take place. a chip select falling edge initiates the serial communication and a chip select rising edge terminates the communication. no communication can take place, even when cs is low and when reset is low. this input is schmitt triggered. 3.13 sck (serial data clock) this is the serial clock pin for spi communication. data is clocked into the device on the rising edge of sck. data is clocked out of the device on the falling edge of sck. the MCP3901 interface is compatible with both spi 0,0 and 1,1 modes. spi modes can only be changed during a reset. the maximum clock speed specified is 20 mhz when dv dd > 4.5v and 10 mhz otherwise. this input is schmitt triggered. 3.14 sdo (serial data output) this is the spi data output pin. data is clocked out of the device on the falling edge of sck. this pin stays high-impedance during the first command byte. it also stays high-impedance during the whole communication for write commands, and when the cs pin is high or when the reset pin is low. this pin is active only when a read command is processed. each read is processed by a packet of 8 bits. 3.15 sdi (serial data input) this is the spi data input pin. data is clocked into the device on the rising edge of sck. when cs is low, this pin is used to communicate with a series of 8-bit commands. the interface is half-duplex (inputs and outputs do not happen at the same time). each communication starts with a chip select falling edge, followed by an 8-bit command word entered through the sdi pin. each command is either a read or a write command. toggling sdi during a read command has no effect. this input is schmitt triggered. note: when clkext = 1 , the crystal oscillator is disabled, as well as the osc2 input. the osc1 becomes the master clock input, clki, the direct path for an external clock source; for example, a clock source generated by an mcu.
MCP3901 ds22192d-page 18 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 19 MCP3901 4.0 terminology and formulas this section defines the terms and formulas used throughout this data sheet. the following terms are defined: mclk ? master clock amclk ? analog master clock dmclk ? digital master clock drclk ? data rate clock oversampling ratio (osr) offset error gain error integral nonlinearity error signal-to-noise ratio (snr) signal-to-noise ratio and distortion (sinad) total harmonic distortion (thd) spurious-free dynamic range (sfdr) MCP3901 delta-sigma architecture idle tones dithering crosstalk psrr cmrr adc reset mode hardware reset mode (reset = 0) adc shutdown mode full shutdown mode 4.1 mclk ? master clock this is the fastest clock present in the device. this is the frequency of the crystal placed at the osc1/osc2 inputs when clkext = 0 or the frequency of the clock input at the osc1/clki when clkext = 1 (see figure 1-5 ). 4.2 amclk ? analog master clock this is the clock frequency that is present on the analog portion of the device, after prescaling has occurred via the config1 prescale<1:0> register bits. the analog portion includes the pgas and the two sigma-delta modulators. equation 4-1: 4.3 dmclk ? digital master clock this is the clock frequency that is present on the digital portion of the device, after prescaling and division by 4. this is also the sampling frequency, which is the rate when the modulator outputs are refreshed. each period of this clock corresponds to one sample and one modulator output (see figure 1-5 ). equation 4-2: 4.4 drclk ? data rate clock this is the output data rate (i.e., the rate at which the adcs output new data). each new data is signaled by a data ready pulse on the dr pin. this data rate is depending on the osr and the prescaler with the following formula: equation 4-3: table 4-1: MCP3901 oversampling ratio settings config analog master clock prescale pre<1:0> 00 amclk = mclk/1 (default) 01 amclk = mclk/2 10 amclk = mclk/4 11 amclk = mclk/8 amclk mclk prescale ------------------------------ - = dmclk amclk 4 -------------------- - mclk 4 prescale --------------------------------------- - == drclk dmclk osr ---------------------- amclk 4osr --------------------- mclk 4 osr prescale ---------------------------------------------------------- - ===
MCP3901 ds22192d-page 20 ? 2011 microchip technology inc. since this is the output data rate, and since the decimation filter is a sinc (or notch) filter, there is a notch in the filter transfer function at each integer multiple of this rate. the following table describes the various combinations of osr and prescale, and their associated amclk, dmclk and drclk rates. 4.5 oversampling ratio (osr) the ratio of the sampling frequency to the output data rate is osr = dmclk/drclk. the default osr is 64 or with mclk = 4 mhz and prescale = 1 , amclk = 4 mhz, f s = 1 mhz, f d = 15.625 ksps. the following bits in the config1 register are used to change the oversampling ratio (osr). 4.6 offset error this is the error induced by the adc when the inputs are shorted together (v in = 0v). the specification incorporates both pga and adc offset contributions. this error varies with pga and osr settings. the offset is different on each channel and varies from chip to chip. this offset error can easily be calibrated out by a mcu with a subtraction. the offset is specified in mv. the offset on the MCP3901 has a low temperature coefficient; see section 2.0 ?typical performance curves? . 4.7 gain error this is the error induced by the adc on the slope of the transfer function. it is the deviation expressed in percent (%) compared to the ideal transfer function defined by equation 5-3 . the specification incorporates both pga and adc gain error contributions, but not the v ref contribution (it is measured with an external v ref ). this error varies with pga and osr settings. the gain error on the MCP3901 has a low temperature coefficient; see the typical performance curves for more information, figure 2-24 and figure 2-25 . table 4-2: device data rates in function of mclk, osr and prescale pre <1:0> osr <1:0> osr amclk dmclk drclk drclk (ksps) sinad (db) enob (bits) 1111 256 mclk/8 mclk/32 mclk/8192 0.4882 91.4 14.89 1110 128 mclk/8 mclk/32 mclk/4096 0.976 86.6 14.10 1101 64 mclk/8 mclk/32 mclk/2048 1.95 78.7 12.78 1100 32 mclk/8 mclk/32 mclk/1024 3.9 68.2 11.04 1011 256 mclk/4 mclk/16 mclk/4096 0.976 91.4 14.89 1010 128 mclk/4 mclk/16 mclk/2048 1.95 86.6 14.10 1001 64 mclk/4 mclk/16 mclk/1024 3.9 78.7 12.78 1000 32 mclk/4 mclk/16 mclk/512 7.8125 68.2 11.04 0111 256 mclk/2 mclk/8 mclk/2048 1.95 91.4 14.89 0110 128 mclk/2 mclk/8 mclk/1024 3.9 86.6 14.10 0101 64 mclk/2 mclk/8 mclk/512 7.8125 78.7 12.78 0100 32 mclk/2 mclk/8 mclk/256 15.625 68.2 11.04 0011 256 mclk mclk/4 mclk/1024 3.9 91.4 14.89 0010 128 mclk mclk/4 mclk/512 7.8125 86.6 14.10 0001 64 mclk mclk/4 mclk/256 15.625 78.7 12.78 0000 32 mclk mclk/4 mclk/128 31.25 68.2 11.04 note: for osr = 32 and 64, dither = 0 . for osr = 128 and 256, dither = 1 . table 4-3: MCP3901 oversampling ratio settings config oversampling ratio osr osr<1:0> 00 32 01 64 (default) 10 128 11 256
? 2011 microchip technology inc. ds22192d-page 21 MCP3901 4.8 integral nonlinearity error integral nonlinearity error is the maximum deviation of an adc transition point from the corresponding point of an ideal transfer function, with the offset and gain errors removed, or with the end points equal to zero. it is the maximum remaining error after calibration of offset and gain errors for a dc input signal. 4.9 signal-to-noise ratio (snr) for the MCP3901 adc, the signal-to-noise ratio is a ratio of the output fundamental signal power to the noise power (not including the harmonics of the signal), when the input is a sinewave at a predetermined frequency. it is measured in db. usually, only the maximum signal-to-noise ratio is specified. the snr calculation mainly depends on the osr and dither settings of the device. equation 4-4: signal-to-noise ratio 4.10 signal-to-noise ratio and distortion (sinad) the most important figure of merit, for the analog performance of the adcs present on the MCP3901, is the signal-to-noise and distortion (sinad) specification. signal-to-noise and distortion ratio are similar to the signal-to-noise ratio, with the exception that you must include the harmonics power in the noise power calculation. the sinad specification mainly depends on the osr and dither settings. equation 4-5: sinad equation the calculated combination of snr and thd per the following formula also yields sinad: equation 4-6: sinad, thd and snr relationship 4.11 total harmonic distortion (thd) the total harmonic distortion is the ratio of the output harmonic?s power to the fundamental signal power for a sinewave input and is defined by equation 4-7 : equation 4-7: the thd calculation includes the first 35 harmonics for the MCP3901 specifications. the thd is usually only measured with respect to the 10 first harmonics. thd is sometimes expressed in %. for converting the thd in %, here is the formula: equation 4-8: this specification depends mainly on the dither setting. 4.12 spurious-free dynamic range (sfdr) sfdr is the ratio between the output power of the fundamental and the highest spur in the frequency spectrum. the spur frequency is not necessarily a harmonic of the fundamental, even though it is usually the case. this figure represents the dynamic range of the adc when a full-scale signal is used at the input. this specification depends mainly on the dither setting. equation 4-9: snr db () 10 signalpower noisepower ---------------------------------- ?? ?? log = sinad db () 10 signalpower noise harmonicspower + -------------------------------------------------------------------- - ?? ?? log = sinad db () 10 10 snr 10 ----------- ?? ?? 10 thd ? 10 --------------- - ?? ?? + log = thd db () 10 harmonicspower fundamentalpower ---------------------------------------------------- - ?? ?? log = thd % () 100 10 thd db () 20 ------------------------ = sfdr db () 10 fundamentalpower highestspurpower ---------------------------------------------------- - ?? ?? log =
MCP3901 ds22192d-page 22 ? 2011 microchip technology inc. 4.13 MCP3901 delta-sigma architecture the MCP3901 incorporates two delta-sigma adcs with a multi-bit architecture. a delta-sigma adc is an oversampling converter that incorporates a built-in modulator, which is digitizing the quantity of charge integrated by the modulator loop (see figure 5-1 ). the quantizer is the block that is performing the analog-to-digital conversion. the quantizer is typically 1 bit, or a simple comparator which helps to maintain the linearity performance of the adc (the dac structure, is in this case, inherently linear). multi-bit quantizers help to lower the quantization error (the error fed back in the loop can be very large with 1-bit quantizers) without changing the order of the modulator or the osr, which leads to better snr figures. typically, however, the linearity of such architectures is more difficult to achieve, since the dac is no more simple to realize, and its linearity limits the thd of such adcs. the MCP3901?s 5-level quantizer is a flash adc, composed of 4 comparators arranged with equally spaced thresholds and a thermometer coding. the MCP3901 also includes proprietary 5-level dac architecture that is inherently linear for improved thd figures. 4.14 idle tones a delta-sigma converter is an integrating converter. it also has a finite quantization step (lsb) which can be detected by its quantizer. a dc input voltage that is below the quantization step should only provide an all zeros result, since the input is not large enough to be detected. as an integrating device, any delta-sigma will show, in this case, idle tones. this means that the output will have spurs in the frequency content that are depending on the ratio between quantization step voltage and the input voltage. these spurs are the result of the integrated sub-quantization step inputs that will eventually cross the quantization steps after a long enough integration. this will induce an ac frequency at the output of the adc and can be shown in the adc output spectrum. these idle tones are residues that are inherent to the quantization process and the fact that the converter is integrating at all times without being reset. they are residues of the finite resolution of the conversion process. they are very difficult to attenuate and they are heavily signal dependent. they can degrade both the sfdr and thd of the converter, even for dc inputs. they can be localized in the baseband of the converter, and thus, difficult to filter from the actual input signal. for power metering applications, idle tones can be very disturbing because energy can be detected even at the 50 or 60 hz frequency, depending on the dc offset of the adcs, while no power is really present at the inputs. the only practical way to suppress or attenuate the idle tones phenomenon is to apply dithering to the adc. the idle tone amplitudes are a function of the order of the modulator, the osr and the number of levels in the quantizer of the modulator. a higher order, a higher osr or a higher number of levels for the quantizer will attenuate the idle tones amplitude. 4.15 dithering in order to suppress or attenuate the idle tones present in any delta-sigma adcs, dithering can be applied to the adc. dithering is the process of adding an error to the adc feedback loop in order to ?decorrelate? the outputs and ?break? the idle tones behavior. usually, a random or pseudo-random generator adds an analog or digital error to the feedback loop of the delta-sigma adc in order to ensure that no tonal behavior can happen at its outputs. this error is filtered by the feedback loop, and typically, has a zero average value so that the converter static transfer function is not disturbed by the dithering process. however, the dithering process slightly increases the noise floor (it adds noise to the part) while reducing its tonal behavior, and thus, improving sfdr and thd (see figure 2-10 and figure 2-14 ). the dithering process scrambles the idle tones into baseband white noise and ensures that dynamic specs (snr, sinad, thd, sfdr) are less signal dependent. the MCP3901 incorporates a proprietary dithering algorithm on both adcs in order to remove idle tones and improve thd, which is crucial for power metering applications.
? 2011 microchip technology inc. ds22192d-page 23 MCP3901 4.16 crosstalk the crosstalk is defined as the perturbation caused by one adc channel on the other adc channel. it is a measurement of the isolation between the two adcs present in the chip. this measurement is a two-step procedure: 1. measure one adc input with no perturbation on the other adc (adc inputs shorted). 2. measure the same adc input with a perturbation sine wave signal on the other adc at a certain predefined frequency. the crosstalk is then the ratio between the output power of the adc when the perturbation is present and when it is not divided by the power of the perturbation signal. a lower crosstalk value implies more independence and isolation between the two channels. the measurement of this signal is performed under the following conditions: ?gain = 1 , ? prescale = 1 , ? osr = 256, ? mclk = 4 mhz step 1 ? ch0+ = ch0- = agnd ? ch1+ = ch1- = agnd step 2 ? ch0+ = ch0- = agnd ? ch1+ ? ch1- = 1 v p-p @ 50/60 hz (full-scale sine wave) the crosstalk is then calculated with the following formula: equation 4-10: 4.17 psrr this is the ratio between a change in the power supply voltage and the adc output codes. it measures the influence of the power supply voltage on the adc outputs. the psrr specification can be dc (the power supply is taking multiple dc values) or ac (the power supply is a sinewave at a certain frequency with a certain common-mode). in ac, the amplitude of the sinewave is representing the change in the power supply. it is defined as: equation 4-11: where v out is the equivalent input voltage that the output code translates to with the adc transfer function. in the MCP3901 specification, av dd varies from 4.5v to 5.5v, and for ac psrr, a 50/60 hz sinewave is chosen, centered around 5v with a maximum 500 mv amplitude. the psrr specification is measured with av dd = dv dd . 4.18 cmrr this is the ratio between a change in the common-mode input voltage and the adc output codes. it measures the influence of the common-mode input voltage on the adc outputs. the cmrr specification can be dc (the common-mode input voltage is taking multiple dc values) or ac (the common-mode input voltage is a sinewave at a certain frequency with a certain common-mode). in ac, the amplitude of the sinewave is representing the change in the power supply. it is defined as: equation 4-12: where v cm = (chn+ + chn-)/2 is the common-mode input voltage and v out is the equivalent input voltage, the output code is translated to the adc transfer function. in the MCP3901 specification, vcm varies from -1v to +1v, and for the ac specification, a 50/ 60 hz sinewave is chosen, centered around 0v, with a 500 mv amplitude. 4.19 adc reset mode adc reset mode (also called soft reset mode) can only be entered through setting the reset<1:0> bits high in the configuration register. this mode is defined as the condition where the converters are active, but their output is forced to ? 0 ?. the registers are not affected in this reset mode and retain their values. the adcs can immediately output meaningful codes after leaving reset mode (and after the sinc filter settling time of 3/drclk). this mode is both entered and exited through the setting of bits in the configuration register. ctalk db () 10 ch0power ch1power -------------------------------- - ?? ?? log = psrr db () 20 v out av dd ------------------ - ?? ?? log = cmrr db () 20 v out v cm ----------------- ?? ?? log =
MCP3901 ds22192d-page 24 ? 2011 microchip technology inc. each converter can be placed in soft reset mode independently. the configuration registers are not modified by the soft reset mode. a data ready pulse will not be generated by any adc while in reset mode. reset mode also effects the modulator output block (i.e., the mdat pin, corresponding to the channel in reset). if enabled, it provides a bitstream corresponding to a zero output (a series of ? 0011 ? bits continuously repeated). when an adc exits adc reset mode, any phase delay present, before reset was entered, will still be present. if one adc was not in reset, the adc leaving reset mode will automatically resynchronize the phase delay. the resynchronization is relative to the other adc channel per the phase delay register block and gives dr pulses accordingly. if an adc is placed in reset mode while the other is converting, it is not shutting down the internal clock. when going back out of reset, it will be resynchronized automatically with the clock that did not stop during reset. if both adcs are in soft reset or shutdown modes, the clock is no longer distributed to the digital core for low- power operation. once any of the adc is back to normal operation, the clock is automatically distributed again. 4.20 hard reset mode (reset = 0 ) this mode is only available during a power-on-reset (por) or when the reset pin is pulled low. the reset pin low state places the device in a hard reset mode. in this mode, all internal registers are reset to their default state. the dc biases for the analog blocks are still active (i.e., the MCP3901 is ready to convert). however, this pin clears all conversion data in the adcs. in this mode, the mdat outputs are in high-impedance. the comparator outputs of both adcs are forced to their reset state (? 0011 ?). the sinc filters are all reset, as well as their double output buffers. see serial timing for minimum pulse low time in section 1.0 ?electrical characteristics? . during a hard reset, no communication with the part is possible. the digital interface is maintained in a reset state. 4.21 adc shutdown mode adc shutdown mode is defined as a state where the converters and their biases are off, consuming only leakage current. after this is removed, start-up delay time (sinc filter settling time) will occur before outputting meaningful codes. the start-up delay is needed to power-up all dc biases in the channel that was in shutdown. this delay is the same as t por and any dr pulse coming within this delay should be discarded. each converter can be placed in shutdown mode, independently. the config registers are not modified by the shutdown mode. this mode is only available through programming the shutdown<1:0> bits in the config2 register. the output data is flushed to all zeros while in adc shutdown. no data ready pulses are generated by any adc while in adc shutdown mode. adc shutdown mode also effects the modulator output block (i.e., if mdat of the channel in shutdown mode is enabled). this pin will provide a bitstream correspond- ing to a zero output (series of ? 0011 ? bits continuously repeated). when an adc exits adc shutdown mode, any phase delay present before shutdown was entered will still be present. if one adc was not in shutdown, the adc leaving shutdown mode will automatically resynchro- nize the phase delay relative to the other adc channel, per the phase delay register block, and give dr pulses accordingly. if an adc is placed in shutdown mode while the other is converting, it is not shutting down the internal clock. when going back out of shutdown, it will be resynchronized automatically with the clock that did not stop during reset. if both adcs are in adc reset or adc shutdown modes, there is no more distribution of the clock to the digital core for low-power operation. once any of the adc is back to normal operation, the clock is automatically distributed again. 4.22 full shutdown mode the lowest power consumption can be achieved when shutdown<1:0> = 11 and vrefext = clkext = 1 . this mode is called ?full shutdown mode? and no analog circuitry is enabled. in this mode, the por av dd monitoring circuit is also disabled. when the clock is idle (clki = 0 or 1 continuously), no clock is propagated throughout the chip. both adcs are in shutdown, the internal voltage reference is disabled and the internal oscillator is disabled. the only circuit that remains active is the spi interface, but this circuit does not induce any static power consumption. if sck is idle, the only current consumption comes from the leakage currents induced by the transistors and is less than 1 a on each power supply. this mode can be used to power down the chip completely and avoid power consumption when there is no data to convert at the analog inputs. any sck or mclk edge coming while on this mode, will induce dynamic power consumption. once any of the shutdown, clkext and vrefext bits returns to ? 0 ?, the por av dd monitoring block is back to operation and av dd monitoring can take place.
? 2011 microchip technology inc. ds22192d-page 25 MCP3901 5.0 device overview 5.1 analog inputs (chn+/-) the MCP3901 analog inputs can be connected directly to current and voltage transducers (such as shunts, current transformers, or rogowski coils). each input pin is protected by specialized esd structures that are certified to pass 7 kv hbm and 400v mm contact charge. these structures allow bipolar 6v continuous voltage, with respect to agnd, to be present at their inputs without the risk of permanent damage. both channels have fully differential voltage inputs for better noise performance. the absolute voltage at each pin, relative to agnd, should be maintained in the 1v range during operation in order to ensure the specified adc accuracy. the common-mode signals should be adapted to respect both the previous conditions and the differential input voltage range. for best performance, the common-mode signals should be maintained to agnd. 5.2 programmable gain amplifiers (pga) the two programmable gain amplifiers (pgas) reside at the front end of each delta-sigma adc. they have two functions: translate the common-mode of the input from agnd to an internal level between agnd and av dd , and amplify the input differential signal. the translation of the common-mode does not change the differential signal, but recenters the common-mode so that the input signal can be properly amplified. the pga block can be used to amplify very low signals, but the differential input range of the delta-sigma modulator must not be exceeded. the pga is controlled by the pga_chn<2:0> bits in the gain register. the following table represents the gain settings for the pga: 5.3 delta-sigma modulator 5.3.1 architecture both adcs are identical in the MCP3901 and they include a second-order modulator with a multi-bit dac architecture (see figure 5-1 ). the quantizer is a flash adc composed of 4 comparators with equally spaced thresholds and a thermometer output coding. the proprietary 5-level architecture ensures minimum quantization noise at the outputs of the modulators without disturbing linearity or inducing additional distortion. the sampling frequency is dmclk (typically 1 mhz with mclk = 4 mhz) so the modulator outputs are refreshed at a dmclk rate. the modulator outputs are available in the mod register or serially transferred on each mdat pin. both modulators also include a dithering algorithm that can be enabled through the dither<1:0> bits in the configuration register. this dithering process improves thd and sfdr (for high osr settings) while slightly increasing the noise floor of the adcs. for power metering applications and applications that are distortion-sensitive, it is recommended to keep dither enabled for both adcs. in the case of power metering applications, thd and sfdr are critical specifications to optimize snr (noise floor). this is not really problematic due to a large averaging factor at the output of the adcs; therefore, even for low osr settings, the dithering algorithm will show a positive impact on the performance of the application. figure 5-1 represents a simplified block diagram of the delta-sigma adc present on MCP3901. figure 5-1: simplified delta-sigma adc block diagram. table 5-1: pga configuration setting gain pga_chn<2:0> gain (v/v) gain (db) v in range (v) 000 100.5 001 260.25 010 4120.125 011 8 18 0.0625 100 16 24 0.03125 101 32 30 0.015625 second- order integrator loop filter quantizer dac differential voltage input output bitstream 5-level flash adc MCP3901 delta-sigma modulator
MCP3901 ds22192d-page 26 ? 2011 microchip technology inc. 5.3.2 modulator input range and saturation point for a specified voltage reference value of 2.4v, the modulators? specified differential input range is 500 mv. the input range is proportional to v ref and scales according to the v ref voltage. this range ensures the stability of the modulator over amplitude and frequency. outside of this range, the modulator is still functional, however, its stability is no longer ensured, and therefore, it is not recommended to exceed this limit. the saturation point for the modulator is v ref /3, since the transfer function of the adc includes a gain of 3 by default (independent from the pga setting). see section 5.6 ?adc output coding? . 5.3.3 boost mode the delta-sigma modulators also include an independent boost mode for each channel. if the corresponding boost<1:0> bits are enabled, the power consumption of the modulator is multiplied by 2. its bandwidth is increased to be able to sustain amclk clock frequencies up to 8.192 mhz, while keeping the adc accuracy. when disabled, the power consumption is back to normal and the amclk clock frequencies can only reach up to 5 mhz without affecting adc accuracy. 5.4 modulator output block if the user wishes to use the modulator output of the device, the appropriate bits to enable the modulator output must be set in the configuration register. when modout<1:0> are enabled, the modulator output of the corresponding channel is present at the corresponding mdat output pin as soon as the command is placed. since the delta-sigma modulators have a 5-level output given by the state of 4 comparators with thermometer coding, their outputs can be represented on 4 bits. each bit gives the state of the corresponding comparator (see tab l e 5 - 2 ). these bits are present on the mod register and are updated at the dmclk rate. in order to output the comparators result on a separate pin (mdat0 and mdat1), these comparator output bits have been arranged to be serially output at the amclk rate (see figure 5-2 ). this 1-bit serial bitstream is the same as what would be produced by a 1-bit dac modulator with a sampling frequency of amclk. the modulator can either be considered as a 5 level-output at dmclk rate or a 1-bit output at amclk rate. these two representations are interchangeable. the mdat outputs can, therefore, be used in any application that requires 1-bit modulator outputs. these applications will often integrate and filter the 1-bit output with sinc or more complex decimation filters computed by an mcu or a dsp. figure 5-2: mdat serial outputs in function of the modulator output code. since the reset and shutdown spi commands are asynchronous, the mdat pins are resynchronized with dmclk after each time the part goes out of reset and shutdown. this means that the first output of mdat after reset is always ? 0011 ? after the first dmclk rising edge. table 5-2: delta-sigma modulator coding comp<3:0> code modulator output code mdat serial stream 1111 +2 1111 0111 +1 0111 0011 0 0011 0001 -1 0001 0000 -2 0000 dmclk mdat+2 mdat+1 mdat+0 mdat-1 mdat-2 comp amclk <3> comp <2> comp <1> comp <0>
? 2011 microchip technology inc. ds22192d-page 27 MCP3901 5.5 sinc 3 filter both adcs present in the MCP3901 include a decimation filter that is a third-order sinc (or notch) filter. this filter processes the multi-bit bitstream into 16 or 24-bit words (depending on the width configuration bit). the settling time of the filter is 3 dmclk periods. it is recommended that unsettled data be discarded to avoid data corruption, which can be done easily by setting the dr_lty bit high in the status/com register. the resolution achievable at the output of the sinc filter (the output of the adc) is dependant on the osr and is summarized with the following table: for 24-bit output mode (width = 1 ), the output of the sinc filter is padded with least significant zeros for any resolution less than 24 bits. for 16-bit output modes, the output of the sinc filter is rounded to the closest 16-bit number in order to conserve only 16-bit words and to minimize truncation error. the gain of the transfer function of this filter is 1 at each multiple of dmclk (typically 1 mhz) so a proper anti-aliasing filter must be placed at the inputs. this will attenuate the frequency content around dmclk and keep the desired accuracy over the baseband of the converter. this anti-aliasing filter can be a simple, first-order rc network with a sufficiently low time constant to generate high rejection at dmclk frequency. equation 5-1: sinc filter transfer function h(z) where: the normal mode rejection ratio (nmrr) or gain of the transfer function is given by the following equation: equation 5-2: magnitude of frequency response h(f) or: where: figure 5-3 shows the sinc filter frequency response: figure 5-3: sinc filter response with mclk = 4 mhz, osr = 64, prescale = 1 . table 5-3: adc resolution vs. osr osr<1:0> osr adc resolution (bits) no missing codes 00 32 17 01 64 20 10 128 23 11 256 24 hz () 1z osr ? ? osr 1 z 1 ? ? () -------------------------------- - ?? ?? ?? 3 = z 2 fj dmclk --------------------- - ?? ?? exp = nmrr f () c f dmclk --------------------- - ? ?? ?? sin c f drclk -------------------- ? ?? ?? sin ---------------------------------------------- 3 = nmrr f () c f f s --- - ? ?? ?? sin c f f d ---- - ? ?? ?? sin ----------------------------- 3 = cx () sin x () sin x -------------- - = -120 -100 -80 -60 -40 -20 0 20 1 10 100 1000 10000 100000 1000000 input frequency (hz) magnitude (db)
MCP3901 ds22192d-page 28 ? 2011 microchip technology inc. 5.6 adc output coding the second-order modulator, sinc 3 filter, pga, v ref and analog input structure all work together to produce the device transfer function for the analog-to-digital conversion (see equation 5-3 ). the channel data is either a 16-bit or 24-bit word, presented in a 23-bit or 15-bit plus sign, two?s complement format, and is msb (left) justified. the adc data is two or three bytes wide depending on the width bit of the associated channel. the 16-bit mode includes a round to the closest 16-bit word (instead of truncation) in order to improve the accuracy of the adc data. in case of positive saturation (chn+ ? chn- > v ref /3), the output is locked to 7fffff for 24-bit mode (7fff for 16-bit mode). in case of negative saturation (chn+ ? chn- < -v ref /3), the output code is locked to 800000 for 24-bit mode (8000 for 16-bit mode). equation 5-3 is only true for dc inputs. for ac inputs, this transfer function needs to be multiplied by the transfer function of the sinc 3 filter (see equation 5-1 and equation 5-2 ). equation 5-3: 5.6.1 adc resolution as a function of osr the adc resolution is a function of the osr ( section 5.5 ?sinc3 filter? ). the resolution is the same for both channels. no matter what the resolution is, the adc output data is always presented in 24-bit words, with added zeros at the end if the osr is not large enough to produce 24-bit resolution (left justification). data_chn ch n+ ch n- ? () v ref+ v ref- ? ------------------------------------- ?? ?? 8,388,608 g 3 = data_chn ch n+ ch n- ? () v ref+ v ref- ? ------------------------------------- ?? ?? 32 768 ,g3 = (for 24-bit mode or width = 1 ) (for 16-bit mode or width = 0 ) table 5-4: osr = 256 output code examples adc output code (msb first) hexadecimal decimal 0111 1111 1111 1111 1111 1111 0x7fffff + 8,388,607 0111 1111 1111 1111 1111 1110 0x7ffffe + 8,388,606 0000 0000 0000 0000 0000 0000 0x000000 0 1111 1111 1111 1111 1111 1111 0xffffff -1 1000 0000 0000 0000 0000 0001 0x800001 - 8,388,607 1000 0000 0000 0000 0000 0000 0x800000 - 8,388,608 table 5-5: osr = 128 output code examples adc output code (msb first) hexadecimal decimal 23-bit resolution 0111 1111 1111 1111 1111 111 0 0x7ffffe + 4,194,303 0111 1111 1111 1110 1111 110 0 0x7ffffc + 4,194,302 0000 0000 0000 0000 0000 000 0 0x000000 0 1111 1111 1111 1111 1111 111 0 0xfffffe -1 1000 0000 0000 0000 0000 001 0 0x800002 - 4,194,303 1000 0000 0000 0000 0000 000 0 0x800000 - 4,194,304
? 2011 microchip technology inc. ds22192d-page 29 MCP3901 5.7 voltage reference 5.7.1 internal voltage reference the MCP3901 contains an internal voltage reference source, specially designed to minimize drift over temperature. in order to enable the internal voltage reference, the vrefext bit in the configuration register must be set to ? 0 ? (default mode). this internal v ref supplies reference voltage to both channels. the typical value of this voltage reference is 2.37v 2%. the internal reference has a very low typical temperature coefficient of 12 ppm/c, allowing the output codes to have minimal variation with respect to temperature, since they are proportional to (1/v ref ). the noise of the internal voltage reference is low enough not to significantly degrade the snr of the adc if compared to a precision, external low noise voltage reference. the output pin for the internal voltage reference is refin+/out. when the internal voltage reference is enabled, the refin- pin should always be connected to agnd. for optimal adc accuracy, appropriate bypass capacitors should be placed between refin+/out and agnd. decoupling at the sampling frequency, around 1 mhz, is important for any noise around this frequency will be aliased back into the conversion data (0.1 f ceramic and 10 f tantalum capacitors are recommended). these bypass capacitors are not mandatory for correct adc operation, but removing these capacitors may degrade the accuracy of the adc. the bypass capacitors also help the applications where the voltage reference output is connected to other circuits. in this case, additional buffering may be needed as the output drive capability of this output is low. 5.7.2 differential external voltage inputs when the vrefext bit is high, the two reference pins (refin+/out, refin-) become a differential voltage reference input. the voltage at the refin+/out pin is noted as v ref + and the voltage at the refin- pin is noted as v ref -. the differential voltage input value is given by the following equation: equation 5-4: the specified v ref range is from 2.2v to 2.6v. the refin- pin voltage (v ref -) should be limited to 0.3v. typically, for single-ended reference applications, the refin- pin should be directly connected to agnd. table 5-6: osr = 64 output code examples adc output code (msb first) hexadecimal decimal 20-bit resolution 0111 1111 1111 1111 1111 0 0 0 0 0x7ffff0 + 524, 287 0111 1111 1111 1111 1110 0 0 0 0 0x7fffe0 + 524, 286 0000 0000 0000 0000 0000 0 0 0 0 0x000000 0 1111 1111 1111 1111 1111 0 0 0 0 0xfffff0 -1 1000 0000 0000 0000 0001 0 0 0 0 0x800010 - 524,287 1000 0000 0000 0000 0000 0 0 0 0 0x800000 - 524, 288 table 5-7: osr = 32 output code examples adc output code (msb first) hexadecimal decimal 17-bit resolution 0111 1111 1111 1111 1 0 0 0 0 0 0 0 0x7fff80 + 65, 535 0111 1111 1111 1111 0 0 0 0 0 0 0 0 0x7fff00 + 65, 534 0000 0000 0000 0000 0 0 0 0 0 0 0 0 0x000000 0 1111 1111 1111 1111 1 0 0 0 0 0 0 0 0xffff80 -1 1000 0000 0000 0000 1 0 0 0 0 0 0 0 0x800080 - 65,535 1000 0000 0000 0000 0 0 0 0 0 0 0 0 0x800000 - 65, 536 v ref = v ref + ? v ref -
MCP3901 ds22192d-page 30 ? 2011 microchip technology inc. 5.8 power-on reset the MCP3901 contains an internal por circuit that monitors analog supply voltage av dd during operation. the typical threshold for a power-up event detection is 4.2v 5%. the por circuit has a built-in hysteresis for improved transient spikes immunity that has a typical value of 200 mv. proper decoupling capacitors (0.1 f ceramic and 10 f tantalum) should be mounted as close as possible to the av dd pin, providing additional transient immunity. figure 5-4 illustrates the different conditions at power-up and a power-down event in the typical conditions. all internal dc biases are not settled until at least 50 s after system por. any dr pulses during this time, after a system reset, should be ignored. after por, d r pulses are present at the pin with all the default conditions in the configuration registers. both av dd and dv dd power supplies are independent. since av dd is the only power supply that is monitored, it is highly recommended to power up dv dd first as a power-up sequence. if av dd is powered up first, it is highly recommended to keep the reset pin low during the whole power-up sequence. figure 5-4: power-on reset operation. 5.9 reset effect on delta-sigma modulator/sinc filter when the reset pin is low, both adcs will be in reset and output code, 0x0000h. the reset pin performs a hard reset (dc biases still on, part ready to convert) and clears all charges contained in the delta-sigma modulators. the comparators? output is ? 0011 ? for each adc. the sinc filters are all reset, as well as their double output buffers. this pin is independent of the serial interface. it brings the config registers to the default state. when reset is low, any write with the spi interface will be disabled and will have no effect. all output pins (sdo, dr , mdat0/1) are high-impedance, and no clock is propagated through the chip. 5.10 phase delay block the MCP3901 incorporates a phase delay generator which ensures that the two adcs are converting the inputs with a fixed delay between them. the two adcs are synchronously sampling but the averaging of modulator outputs is delayed. therefore, the sinc filter outputs (thus, the adc outputs) show a fixed phase delay, as determined by the phase register setting. the phase register (phase<7:0>) is a 7 bit + sign, msb first, two?s complement register that indicates how much phase delay there is to be between channel 0 and channel 1. the reference channel for the delay is channel 1 (typically the voltage channel for power metering applications). when phase<7:0> are positive, channel 0 is lagging versus channel 1. when phase<7:0> are negative, channel 0 is leading versus channel 1. the amount of delay between two adc conversions is given by the following formula: equation 5-5: the timing resolution of the phase delay is 1/dmclk or 1 s in the default configuration with mclk = 4 mhz. the data ready signals are affected by the phase delay settings. typically, the time difference between the data ready pulses of channel 0 and channel 1 is equal to the phase delay setting. av dd 5v 4.2v 4v device mode reset proper operation reset time 50 s 0v t por note: a detailed explanation of the data ready pin (dr ) with phase delay is present in section 6.10 ?data ready latches and data ready modes (drmode<1:0>)? . delay phase register code dmclk ------------------------------------------------- - =
? 2011 microchip technology inc. ds22192d-page 31 MCP3901 5.10.1 phase delay limits the phase delay can only go from -osr/2 to +osr/2 ? 1. this sets the fine phase resolution. the phase register is coded with two?s complement. if larger delays between the two channels are needed, they can be implemented externally to the chip with an mcu. a fifo in the mcu can save incoming data from the leading channel for a number n of drclk clocks. in this case, drclk would represent the coarse timing resolution, and dmclk, the fine timing resolution. the total delay will then be equal to: delay = n/drclk + phase/dmclk the phase delay register can be programmed once with the osr = 256 setting and will adjust to the osr automatically afterwards, without the need to change the value of the phase register. ? osr = 256 : the delay can go from -128 to +127. phase<7> is the sign bit, phase<6> is the msb and phase<0> is the lsb. ? osr = 128: the delay can go from -64 to +63. phase<6> is the sign bit, phase<5> is the msb and phase<0> is the lsb. ? osr = 64 : the delay can go from -32 to +31. phase<5> is the sign bit, phase<4> is the msb and phase<0> is the lsb. ? osr = 32: the delay can go from -16 to +15. phase<4> is the sign bit, phase<3> is the msb and phase<0> is the lsb. 5.11 crystal oscillator the MCP3901 includes a pierce-type crystal oscillator with very high stability and ensures very low temperature and jitter for the clock generation. this oscillator can handle up to 16.384 mhz crystal frequencies provided that proper load capacitances and the quartz quality factor are used. for keeping specified adc accuracy, amclk should be kept between 1 and 5 mhz with boost off or 1 and 8.192 mhz with boost on. larger mclk frequencies can be used provided the prescaler clock settings allow the amclk to respect these ranges. for a proper start-up, the load capacitors of the crystal should be connected between osc1 and dgnd, and between osc2 and dgnd. they should also respect the following equation: equation 5-6: when clkext = 1 , the crystal oscillator is bypassed by a digital buffer to allow direct clock input for an external clock (see figure 1-5 ). table 5-8: phase values with mclk = 4 mhz, osr = 256 phase register value hex delay (ch0 relative to ch1) 01111111 0x7f +127 s 01111110 0x7e +126 s 00000001 0x01 +1 s 00000000 0x00 0 s 11111111 0xff -1 s 10000001 0x81 -127 s 10000000 0x80 -128 s r m 1.6 10 6 1 fc load ------------------------ - ?? ?? 2 < where: f = crystal frequency in mhz c load = load capacitance in pf including parasitics from the pcb r m = motional resistance in ohms of the quartz
MCP3901 ds22192d-page 32 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 33 MCP3901 6.0 serial interface description 6.1 overview the MCP3901 device is compatible with spi modes 0,0 and 1,1. data is clocked out of the MCP3901 on the falling edge of sck and data is clocked into the MCP3901 on the rising edge of sck. in these modes, sck can idle either high or low. each spi communication starts with a cs falling edge and stops with the cs rising edge. each spi communication is independent. when cs is high, sdo is in high-impedance, and transitions on sck and sdi have no effect. additional controls: r eset , dr and mdat0/1 are also provided on separate pins for advanced communication. the MCP3901 interface has a simple command structure. the first byte transmitted is always the control byte and is followed by data bytes that are 8-bit wide. both adcs are continuously converting data by default and can be reset or shut down through a config2 register setting. since each adc data is either 16 or 24 bits (depending on the width bits), the internal registers can be grouped together with various configurations (through the read bits) in order to allow easy data retrieval within only one communication. for device reads, the internal address counter can be automatically incremented in order to loop through groups of data within the register map. the sdo will then output the data located at the address (a<4:0>) defined in the control byte and then address + 1 depending on the read<1:0> bits, which select the groups of registers. these groups are defined in section 7.1 ?adc channel data output registers? (register map). the data ready pin (dr ) can be used as an interrupt for an mcu and outputs pulses when new adc channel data is available. the reset pin acts like a hard reset and can reset the part to its default power- up configuration. the mdat0/1 pins give the modulator outputs (see section 5.4 ?modulator output block? ). 6.2 control byte the control byte of the MCP3901 contains two device address bits, a<6:5>, 5 register address bits, a<4:0>, and a read/write bit (r/w ). the first byte transmitted to the MCP3901 is always the control byte. the MCP3901 interface is device addressable (through a<6:5>) so that multiple MCP3901 chips can be present on the same spi bus with no data bus contention. this functionality enables three-phase power metering systems, containing three MCP3901 chips, controlled by a single spi bus (single cs , sck, sdi and sdo pins). figure 6-1: control byte. the default device address bits are ? 00 ?. contact the microchip factory for additional device address bits. for more information, please see the product identification system section. a read on undefined addresses will give an all zeros output on the first, and all subsequent transmitted bytes. a write on an undefined address will have no effect and also, will not increment the address counter. the register map is defined in section 7.1 ?adc channel data output registers? . 6.3 reading from the device the first data byte read is the one defined by the address given in the control byte. after this first byte is transmitted, if the cs pin is maintained low, the communication continues and the address of the next transmitted byte is determined by the status of the read bits in the status/com register. multiple looping configurations can be defined through the read<1:0> bits for the address increment (see section 6.6 ?spi mode 0,0 ? clock idle low, read/ write examples? ). 6.4 writing to the device the first data byte written is the one defined by the address given in the control byte. the write communication automatically increments the address for subsequent bytes. the address of the next transmitted byte within the same communication (cs stays low) is the next address defined on the register map. at the end of the register map, the address loops to the beginning of the register map. writing a non-writable register has no effect. the sdo pin stays in high-impedance during a write communication. 6.5 spi mode 1,1 ? clock idle high, read/write examples in this spi mode, the clock idles high. for the MCP3901, this means that there will be a falling edge before there is a rising edge. note: changing from an spi mode 1,1 to an spi mode 0,0 is possible, but needs a reset pulse in-between to ensure correct communication. a6 a5 a4 a3 a2 a1 a0 r/w read/ write bit register device address bits address bits
MCP3901 ds22192d-page 34 ? 2011 microchip technology inc. : figure 6-2: device read (spi mode 1,1 ? clock idles high). figure 6-3: device write (spi mode 1,1 ? clock idles high). sck sdi sdo cs a6 a5 a4 a3 a2 a1 a0 d6 d5 d4 d3 d2 d1 d0 (address) data (address + 1) data d6 d5 d4 d3 d2 d1 data transitions on the falling edge mcu and MCP3901 latch bits on the rising edge d0 hi-z hi-z d7 d7 r/w hi-z sck sdi sdo cs r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 (address) data (address + 1) data d6 d5 d4 d3 d2 d1 d0 data transitions on the falling edge mcu and MCP3901 latch bits on the rising edge d0 hi-z hi-z d7 hi-z
? 2011 microchip technology inc. ds22192d-page 35 MCP3901 6.6 spi mode 0,0 ? clock idle low, read/write examples in this spi mode, the clock idles low. for the MCP3901, this means that there will be a rising edge before there is a falling edge. figure 6-4: device read (spi mode 0,0 ? clock idles low). figure 6-5: device write (spi mode 0,0 ? clock idles low). sck sdi sdo cs r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 (address) data (address + 1) data d7 d6 d5 d4 d3 d2 d1 data transitions on the falling edge mcu and MCP3901 latch bits on the rising edge d0 d7 of (address + 2) data hi-z hi-z hi-z sck sdi sdo cs r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d7 (address) data (address + 1) data d6 d5 d4 d3 d2 d1 d7 of (address + 2) data d0 data transitions on the falling edge mcu and MCP3901 latch bits on the rising edge d0 hi-z hi-z hi-z
MCP3901 ds22192d-page 36 ? 2011 microchip technology inc. 6.7 continuous communication, looping on address sets if the user wishes to read back either of the adc channels continuously, or both channels continuously, the internal address counter of the MCP3901 can be set to loop on specific register sets. in this case, there is only one control byte on sdi to start the communication. the part stays within the same loop until cs returns high. this internal address counter allows the following functionality: ? read one adc channel?s data continuously ? read both adc channel?s data continuously (both adc data can be independent or linked with drmode settings) ? continuously read the entire register map ? continuously read each separate register ? continuously read all configuration registers ? write all configuration registers in one communication (see figure 6-7 ) the status/com register contains the loop settings for the internal address counter (read<1:0>). the internal address counter can either stay constant (read<1:0> = 00 ) and continuously read the same byte, or it can auto-increment and loop through the register groups defined below (read<1:0> = 01 ), register types (read<1:0> = 10 ) or the entire register map (read<1:0> = 11 ). each channel is configured independently as either a 16-bit or 24-bit data word, depending on the setting of the corresponding width bit in the config1 register. for continuous reading, in the case of width = 0 (16-bit), the lower byte of the adc data is not accessed and the part jumps automatically to the following address (the user does not have to clock out the lower byte since it becomes undefined for width = 0 ). figure 6-6 represents a typical, continuous read communication with the default settings (drmode<1:0> = 00 , read<1:0> = 10 ) for both width settings. this configuration is typically used for power metering applications. figure 6-6: typical continuous read communication. ch0 adc addr/r cs sck sdi ch0 adc upper byte sdo ch0 adc middle byte ch0 adc lower byte dr ch1 adc upper byte ch1 adc middle byte ch1 adc lower byte ch0 adc upper byte ch0 adc middle byte ch0 adc lower byte ch1 adc upper byte ch1 adc middle byte ch1 adc lower byte these bytes are not present when width=0 (16-bit mode)
? 2011 microchip technology inc. ds22192d-page 37 MCP3901 6.7.1 continuous write both adcs are powered up with their default configurations, and begin to output dr pulses immediately (reset<1:0> and shutdown<1:0> bits are off by default). the default output codes for both adcs are all zeros. the default modulator output for both adcs is ? 0011 ? (corresponding to a theoretical zero voltage at the inputs). the default phase is zero between the two channels. it is recommended to enter into adc reset mode for both adcs, just after power-up, because the desired MCP3901 register configuration may not be the default one, and in this case, the adc would output undesired data. within the adc reset mode (reset<1:0> = 11 ), the user can configure the whole part with a single communication. the write commands automatically increment the address so that the user can start writing the phase register and finish with the config2 register in only one communication (see figure 6-7 ). the reset<1:0> bits are in the config2 register to allow exiting the soft reset mode, and have the whole part configured and ready to run in only one command. the following register sets are defined as groups: the following register sets are defined as types: 6.8 situations that reset adc data immediately after the following actions, the adcs are temporarily reset in order to provide proper operation: 1. change in phase register. 2. change in the osr setting. 3. change in the prescale setting. 4. overwrite of the same phase register value. 5. change in the clkext bit in the config2 register, modifying internal oscillator state. after these temporary resets, the adcs go back to the normal operation with no need for an additional command. these are also the settings where the dr position is affected. the phase register can be used to serially soft reset the adcs, without using the reset bits in the configuration register, if the same value is written in the phase register. figure 6-7: recommended configuration sequence at power-up. table 6-1: register groups group addresses adc data ch0 0x00-0x02 adc data ch1 0x03-0x05 mod, phase, gain 0x06-0x08 config, status 0x09-0x0b table 6-2: register types type addresses adc data (both channels) 0x00-0x05 configuration 0x06-0x0b 00011000 cs sck sdi av dd 11xxxxxx config2 addr/w config2 optional reset of both adcs one command for writing complete configuration phase addr/w gain status/com config1 config2 phase 00001110 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
MCP3901 ds22192d-page 38 ? 2011 microchip technology inc. 6.9 data ready pin (dr ) to signify when channel data is ready for transmission, the data ready signal is available on the data ready pin (dr ) through an active-low pulse at the end of a channel conversion. the data ready pin outputs an active-low pulse with a period that is equal to the drclk clock period, and with a width equal to one dmclk period. when not active-low, this pin can either be in high- impedance (when dr_hizn = 0 ) or in a defined logic high state (when dr_hizn = 1 ). this is controlled through the configuration registers. this allows multiple devices to share the same data ready pin (with a pull-up resistor connected between dr and dv dd ) in 3-phase, energy meter designs to reduce pin count. a single device on the bus does not require a pull-up resistor. after a data ready pulse has occurred, the adc output data can be read through spi communication. two sets of latches at the output of the adc prevent the communication from outputting corrupted data (see section 6.10 ?data ready latches and data ready modes (drmode<1:0>)? ). the cs pin has no effect on the dr pin, which means even if cs is high, data ready pulses will be provided (except when the configuration prevents them from outputting data ready pulses). the dr pin can be used as an interrupt when connected to an mcu or dsp. while the reset pin is low, the dr pin is not active. 6.10 data ready latches and data ready modes (drmode<1:0>) to ensure that both channels? adc data is present at the same time for spi read, regardless of phase delay settings for either or both channels, there are two sets of latches in series with both the data ready and the ?read start? triggers. the first set of latches holds each output when the data is ready and latches both outputs together when drmode<1:0> = 00 . when this mode is on, both adcs work together and produce one set of available data after each data ready pulse (that corresponds to the lagging adc data ready). the second set of latches ensures that when reading starts on an adc output, the corresponding data is latched so that no data corruption can occur. if an adc read has started, in order to read the following adc output, the current reading needs to be completed (all bits must be read from the adc output data registers). 6.10.1 data ready pin (dr ) control using drmode bits there are four modes that control the data ready pulses and these modes are set with the drmode<1:0> bits in the status/com register. for power metering applications, drmode<1:0> = 00 is recommended (default mode).
? 2011 microchip technology inc. ds22192d-page 39 MCP3901 the position of the dr pulses vary, with respect to this mode, to the osr and to the phase settings: ? drmode<1:0> = 11 : both data ready pulses from adc channel 0 and adc channel 1 are output on the dr pin. ? drmode<1:0> = 10 : data ready pulses from adc channel 1 are output on the dr pin. the dr from adc channel 0 is not present on the pin. ? drmode<1:0> = 01 : data ready pulses from adc channel 0 are output on the dr pin. the dr from adc channel 1 is not present on the pin. ? drmode<1:0> = 00 (recommended and default mode): data ready pulses from the lagging adc between the two are output on the dr pin. the lagging adc depends on the phase register and on the osr. in this mode, the two adcs are linked together so their data is latched together when the lagging adc output is ready. 6.10.2 dr pulses with shutdown or reset conditions there will be no dr pulses if drmode<1:0> = 00 when either one or both of the adcs are in reset or shutdown. in mode 0,0, a dr pulse only happens when both adcs are ready. any dr pulse will correspond to one data on both adcs. the two adcs are linked together and act as if there was only one channel with the combined data of both adcs. this mode is very practical when both adc channels? data retrieval and processing need to be synchronized, as in power metering applications. figure 6-8 represents the behavior of the data ready pin with the different drmode and dr_lty configurations, while shutdown or resets are applied. note: if drmode<1:0> = 11 , the user will still be able to retrieve the dr pulse for the adc not in shutdown or reset (i.e., only 1 adc channel needs to be awake).
MCP3901 ds22192d-page 40 ? 2011 microchip technology inc. figure 6-8: data ready behavior. d0 d1 d2 d0 d1 d2 d3 d4 d5 d3 d4 d5 d0 d1 d2 d3 d4 d5 d6 d7 d8 d1 d3 d5 d6 d7 d8 d10 d12 d0 d2 d4 d9 d11 d13 d14 d6 d6 d12 d9 d13 d16 d17 d18 d19 d21 d24 d15 d20 d22 d25 d26 d7 d8 d9 d10 d11 d10 d11 d12 d10 d7 d8 d9 d23 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d11 d10 d12 d13 d14 d15 d16 d0 d1 d2 d4 d5 d3 d7 d8 d9 d10 d11 d12 d13 d6 d15 d16 d14 d0 d1 d2 d6 d10 d11 d12 d13 d11 d13 d14 d15 d16 d12 d13 d14 d14 d28 d29 d31 d33 d27 d30 d32 d34 d15 d16 d17 d8 d7 d9 d4 d5 d3 reset<1> or shutdown<1> reset<0> or shutdown<0> reset d0 d1 d2 d3 d4 d5 d0 d1 d2 d3 d4 d5 d6 d7 d8 d1 d3 d5 d6 d7 d8 d11 d13 d0 d2 d4 d10 d12 d14 d15 d6 d9 d13 d17 d18 d21 d24 d16 d19 d22 d25 d26 d10 d11 d12 d10 d8 d9 d23 d11 d12 d13 d14 d28 d29 d31 d33 d27 d30 d32 d34 d14 d15 d16 d0 d1 d2 d3 d4 d5 d12 d11 d13 d15 d16 d17 d8 d9 d10 d7 phase < 0 phase = 0 phase > 0 d6 d7 drclk period drclk period internal reset synchronisation (1 dmclk period) 3*drclk period 3*drclk period d14 d9 d20 drmode=00; dr drmode=01; dr drmode=10; dr drmode=11; dr drmode=00; dr drmode=01; dr drmode=10; dr drmode=11; dr drmode=00; dr drmode=01; dr drmode=10; dr drmode=11; dr drmode=00: select the lagging data ready drmode=01: select the data ready on channel 0 drmode=10: select the data ready on channel 1 drmode=11: select both data ready data ready pulse that appears only when dr_lty=0 drclk period 1 dmclk period
? 2011 microchip technology inc. ds22192d-page 41 MCP3901 7.0 internal registers the addresses associated with the internal registers are listed below. a detailed description of the registers follows. all registers are 8-bit long and can be addressed separately. read modes define the groups and types of registers for continuous read communication or looping on address sets. . table 7-2: register map grouping for continuous read modes table 7-1: register map address name bits r/w description 0x00 data_ch0 24 r channel 0 adc data <23:0>, msb first 0x03 data_ch1 24 r channel 1 adc data <23:0>, msb first 0x06 mod 8 r/w delta-sigma modulators output register 0x07 phase 8 r/w phase delay configuration register 0x08 gain 8 r/w gain configuration register 0x09 status/com 8 r/w status/communication register 0x0a config1 8 r/w configuration register 1 0x0b config2 8 r/w configuration register 2 function address read<1:0> = 01 = 10 = 11 data_ch0 0x00 group type loop entire register map 0x01 0x02 data_ch1 0x03 group 0x04 0x05 mod 0x06 group type phase 0x07 gain 0x08 status/ com 0x09 group config1 0x0a config2 0x0b
MCP3901 ds22192d-page 42 ? 2011 microchip technology inc. 7.1 adc channel data output registers the adc channel data output registers always contain the most recent a/d conversion data for each channel. these registers are read-only. they can be accessed independently or linked together (with read<1:0> bits). these registers are latched when an adc read communication occurs. when a data ready event occurs during a read communication, the most current adc data is also latched to avoid data corruption issues. the three bytes of each channel are updated synchronously at a drclk rate. the three bytes can be accessed separately, if needed, but are refreshed synchronously. register 7-1: channel output registers: address 0x00-0x02: ch0; 0x03-0x05; ch1 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <23> data_chn <22> data_chn <21> data_chn <20> data_chn <19> data_chn <18> data_chn <17> data_chn <16> bit 23 bit 16 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <15> data_chn <14> data_chn <13> data_chn <12> data_chn <11> data_chn <10> data_chn <9> data_chn <8> bit 15 bit 8 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_chn <7> data_chn <6> data_chn <5> data_chn <4> data_chn <3> data_chn <2> data_chn <1> data_chn <0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 data_chn<23:0>
? 2011 microchip technology inc. ds22192d-page 43 MCP3901 7.2 modulator output register the mod register contains the most recent modulator data output. the default value corresponds to an equivalent input of 0v on both adcs. each bit in this register corresponds to one comparator output on one of the channels. this register should be used as a read-only register. ( note 1 ) . this register is updated at the refresh rate of dmclk (typically, 1 mhz with mclk = 4 mhz). see section 5.4 ?modulator output block? for more details. . register 7-2: modulator output register (mod): address 0x06 r/w-0 r/w-0 r/w-1 r/w-1 r/w-0 r/w-0 r/w-1 r/w-1 comp3_ch1 comp2_ch1 comp1_ch1 comp0_ch1 comp3_ch0 comp2_ch0 comp1_ch0 comp0_ch0 bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-4 compn_ch1: comparator outputs from channel 1 modulator bits bit 3-0 compn_ch0: comparator outputs from channel 0 modulator bits note 1: this register can be written in order to overwrite modulator output data, but any writing here will corrupt the adc_data on the next three data ready pulses.
MCP3901 ds22192d-page 44 ? 2011 microchip technology inc. 7.3 phase register the phase register (phase<7:0>) is a 7 bits + sign, msb first, two?s complement register that indicates how much phase delay there should be between channel 0 and channel 1. the reference channel for the delay is channel 1, which typically, is the voltage channel when used in energy metering applications (i.e., when phase regis- ter code is positive, channel 0 is lagging channel 1). when phase register code is negative, channel 0 is leading versus channel 1. the delay is given by the following formula: equation 7-1: 7.3.1 phase resolution from osr the timing resolution of the phase delay is 1/dmclk, or 1 s, in the default configuration (mclk = 4 mhz). the phase register coding depends on the osr setting: ? osr = 256: the delay can go from -128 to +127. phase<7> is the sign bit. phase<6> is the msb and phase<0> the lsb. ? osr = 128: the delay can go from -64 to +63. phase<6> is the sign bit. phase<5> is the msb and phase<0> the lsb. ? osr = 64: the delay can go from -32 to +31. phase<5> is the sign bit. phase<4> is the msb and phase<0> the lsb. ? osr = 32: the delay can go from -16 to +15. phase<4> is the sign bit. phase<3> is the msb and phase<0> the lsb. delay phase register code dmclk ------------------------------------------------- - = register 7-3: phase register (phase): address 0x07 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phase<7> phase<6> phase<5> phase<4> phase<3> phase<2> phase<1> phase<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-0 phase<7:0>: ch0 relative to ch1 phase delay bits delay = phase register?s two?s complement code/dmclk (default phase = 0 ).
? 2011 microchip technology inc. ds22192d-page 45 MCP3901 7.4 gain configuration register this register contains the settings for the pga gains for each channel as well as the boost options for each channel. register 7-4: gain configuration register (gain): address 0x08 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 pga_ch1 <2> pga_ch1 <1> pga_ch1 <0> boost_ ch1 boost_ ch0 pga_ch0 <2> pga_ch0 <1> pga_ch0 <0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-5 pga_ch1<2:0>: pga setting for channel 1 bits 111 = reserved (gain = 1 ) 110 = reserved (gain = 1 ) 101 = gain is 32 100 = gain is 16 011 = gain is 8 010 = gain is 4 001 = gain is 2 000 = gain is 1 bit 4-3 boost_ch<1:0> current scaling for high-speed operation bits 11 = both channels have current x 2 10 = channel 1 has current x 2 01 = channel 0 has current x 2 00 = neither channel has current x 2 bit 2-0 pga_ch0<2:0>: pga setting for channel 0 bits 111 = reserved (gain = 1 ) 110 = reserved (gain = 1 ) 101 = gain is 32 100 = gain is 16 011 = gain is 8 010 = gain is 4 001 = gain is 2 000 = gain is 1
MCP3901 ds22192d-page 46 ? 2011 microchip technology inc. 7.5 status and communication register this register contains all settings related to the communication, including data ready settings and status, and read mode settings. 7.5.1 data ready (dr ) latency control ? dr_lty this bit determines if the first data ready pulses correspond to settled data or unsettled data from each sinc 3 filter. unsettled data will provide dr pulses every drclk period. if this bit is set, unsettled data will wait for 3 drclk periods before giving dr pulses and will then give dr pulses every drclk period. 7.5.2 data ready (dr ) pin high z ? dr_hizn this bit defines the non-active state of the data ready pin (logic 1 or high-impedance). using this bit, the user can connect multiple chips with the same dr pin with a pull-up resistor (dr_hizn = 0 ) or a single chip with no external component (dr_hizn = 1 ). 7.5.3 data ready mode ? drmode<1:0> if one of the channels is in reset or shutdown, only one of the data ready pulses is present and the situation is similar to drmode = 01 or 10 . in the ? 01 ?, ? 10 ? and ? 11 ? modes, the adc channel data to be read is latched at the beginning of a reading in order to prevent the case of erroneous data when a dr pulse happens during a read. in these modes, the two channels are independent. when these bits are equal to ? 11 ?,? 10 ? or ? 01 ?, they control which adc?s data ready is present on the dr pin. when drmode = 00 , the data ready pin output is synchronized with the lagging adc channel (defined by the phase register) and the adcs are linked together. in this mode, the output of the two adcs is latched synchronously at the moment of the dr event. this prevents bad synchronization between the two adcs. the output is also latched at the beginning of a reading in order not to be updated during a read and not to give erroneous data. this mode is very useful for power metering applications because the data from both adcs can be retrieved, using this single data ready event, and processed synchronously even in case of a large phase difference. this mode works as if there was one adc channel and its data would be 48 bits long and contain both channel data. as a consequence, if one channel is in reset or shutdown when drmode = 00 , no data ready pulse will be present at the outputs (if both channels are not ready in this mode, the data is not considered ready). see section 6.9 ?data ready pin (dr)? for more details about data ready pin behavior. 7.5.4 dr status flag ? drstatus<1:0> these bits indicate the dr status of both channels, respectively. these flags are set to logic high after each read of the status/com register. these bits are cleared when a dr event has happened on its respective adc channel. writing these bits has no effect. note: these bits are useful if multiple devices share the same dr output pin (dr_hizn = 0 ), in order to understand what d r event happened. this configura- tion can be used for three-phase power metering systems, where all three phases share the same data ready pin. in case the drmode = 00 (linked adcs), these data ready status bits will be updated syn- chronously upon the same event (lagging adc is ready). these bits are also useful in systems where the dr pin is not used to save mcu i/o.
? 2011 microchip technology inc. ds22192d-page 47 MCP3901 register 7-5: status and communication register: address 0x09 r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-0 r-1 r-1 read<1> read<0> dr_lty dr_hizn drmode<1> drmode<0> drstatus_ch1 drstatus_ch0 bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 7-6 read<1:0>: address loop setting bits 11 = address counter loops on entire register map 10 = address counter loops on register types (default) 01 = address counter loops on register groups 00 = address not incremented, continually read same single register bit 5 dr_lty: data ready latency control bit 1 = ?no latency? conversion, dr pulses after 3 drclk periods (default) 0 = unsettled data is available after every drclk period bit 4 dr_hizn: data ready pin inactive state control bit 1 = the data ready pin default state is a logic high when data is not ready 0 = the data ready pin default state is high-impedance when data is not ready (default) bit 3-2 drmode<1:0>: data ready pin (dr) control bits 11 = both data ready pulses from adc0 and adc channel 1 are output on the dr pin. 10 = data ready pulses from adc channel 1 are output on the dr pin. dr from adc channel 0 are not present on the pin. 01 = data ready pulses from adc channel 0 are output on the dr pin. dr from adc channel 1 are not present on the pin. 00 = data ready pulses from the lagging adc between the two are output on the dr pin. the lagging adc selection depends on the phase register and on the osr (default). bit 1-0 drstatus_ch<1:0>: data ready status bits 11 = adc channel 1 and channel 0 data is not ready (default) 10 = adc channel 1 data is not ready, adc channel 0 data is ready 01 = adc channel 0 data is not ready, adc channel 1 data is ready 00 = adc channel 1 and channel 0 data is ready
MCP3901 ds22192d-page 48 ? 2011 microchip technology inc. 7.6 configuration registers the configuration registers contain settings for the internal clock prescaler, the oversampling ratio, the channel 0 and channel 1 width settings of 16 or 24 bits, the modulator output control settings, the state of the channel resets and shutdowns, the dithering algorithm control (for idle tones suppression), and the control bits for the external v ref and external clk. register 7-6: conf iguration registers: config1: address 0x0a, config2: address 0x0b r/w-0 r/w-0 r/w-0 r/w-1 r/w-0 r/w-0 r/w-0 r/w-0 prescale <1> prescale <0> osr<1> osr<0> width _ch1 width _ch0 modout _ch1 modout _ch0 bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-1 r/w-1 r/w-0 r/w-0 reset _ch1 reset _ch0 shutdown _ch1 shutdown _ch0 dither _ch1 dither _ch0 vrefext clkext bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 15-14 prescale<1:0>: internal master clock (amclk) prescaler value bits 11 = amclk = mclk/8 10 = amclk = mclk/4 01 = amclk = mclk/2 00 = amclk = mclk (default) bit 13-12 osr<1:0>: oversampling ratio for delta-sigma a/d conversion bits (all channels, dmclk/drclk) 11 = 256 10 = 128 01 = 64 (default) 00 = 32 bit 11-10 width_ch<1:0>: adc channel output data word width bits 1 = 24-bit mode 0 = 16-bit mode (default) bit 9-8 modout_ch<1:0>: modulator output setting for mdat pins bits 11 = both ch0 and ch1 modulator outputs present on mdat1 and mdat0 pins 10 = ch1 adc modulator output present on mdat1 pin 01 = ch0 adc modulator output present on mdat0 pin 00 = no modulator output is enabled (default) bit 7-6 reset_ch<1:0>: reset mode setting for adcs bits 11 = both ch0 and ch1 adc are in reset mode 10 = ch1 adc in reset mode 01 = ch0 adc in reset mode 00 = neither channel in reset mode (default) bit 5-4 shutdown_ch<1:0>: shutdown mode setting for adcs bits 11 = both ch0 and ch1 adc are in shutdown 10 = ch1adc is in shutdown 01 = ch0 adc is in shutdown 00 = neither channel is in shutdown (default) bit 3-2 dither_ch<1:0>: control for dithering circuit bits 11 = both ch0 and ch1 adc have dithering circuit applied (default) 10 = only ch1 adc has dithering circuit applied 01 = only ch0 adc has dithering circuit applied 00 = neither channel has dithering circuit applied
? 2011 microchip technology inc. ds22192d-page 49 MCP3901 bit 1 vrefext: internal voltage reference shutdown control bit 1 = internal voltage reference disabled, an external voltage reference must be placed between refin+/out and refin- 0 = internal voltage reference enabled (default) bit 0 clkext: clock mode bit 1 = external clock mode (internal oscillator disabled and bypassed ? lower power) 0 = xt mode ? a crystal must be placed between osc1/osc2 (default) register 7-6: conf iguration registers: config1: address 0 x0a, config2: address 0x0b (continued)
MCP3901 ds22192d-page 50 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 51 MCP3901 8.0 packaging information 8.1 package marking information legend: xx...x customer-specific information y year code (last digit of calendar year) yy year code (last 2 digits of calendar year) ww week code (week of january 1 is week ?01?) nnn alphanumeric traceability code pb-free jedec designator for matte tin (sn) * this package is pb-free. the pb-free jedec designator ( ) can be found on the outer packaging for this package. note : in the event the full microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. 3 e 3 e 20-lead ssop (ss) xxxxxxxx yywwnnn MCP3901a0 xxxxxxxx i/ss^^ 1049256 3 e example: xxxxxxx 20-lead qfn xxxxxxx yywwnnn 39010 examples: i/ml 1049256 3 e 39010 e/ml 1049256 3 e MCP3901a0 e/ss^^ 1049256 3 e
MCP3901 ds22192d-page 52 ? 2011 microchip technology inc. 
           !
" #  $   ! " #$ %! &  '(!%&! %(  % ")%%  % "    &    "*"%!" &"$ 
%!  "$ 
%!    % # "&&
 "  + &    "%   
*,- ./0 . &    %  # % !  ))%!%%    *10  $   &  '! ! )%!%%   '$$& %
!
  # $ 1% & %! %
2 " ) '
  % 
 2  
$ % % " % %%
033)))&
&3
2  4% 55** &  5&% 6 67 8 6!&( $ 6  % 9-./ 7  :  %  ; ;  " " 2 2  9- - <- % "$$  - ; ; 7  ="% *  < < " " 2 ="% * - -+ -9 7  5  %  9  - 1%5  % 5 -- - - 1%
% 5 -*1 5 "2   ; - 1%  > > <> 5 "="% (  ; +< l l1 a2 c e b a1 a 12 note 1 e1 e d n 
    ) / .
? 2011 microchip technology inc. ds22192d-page 53 MCP3901 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
MCP3901 ds22192d-page 54 ? 2011 microchip technology inc. 
  % &  ' # 
( )  *+*+,   !%&#" #  $   ! " #$ %! &  '(!%&! %(  % ")%%  % "     2   )  ! % " + &    "%   
*,- ./0 . &    %  # % !  ))%!%%    *10  $   &  '! ! )%!%%   '$$& %
!
  # $ 1% & %! %
2 " ) '
  % 
 2  
$ % % " % %%
033)))&
&3
2  4% 55** &  5&% 6 67 8 6!&( $ 6  % -./ 7  :  %  <   % "$$    - /% %2 + *1 7  ="% * ./ *#
 " "="% * 9  < 7  5  %  ./ *#
 " "5  %  9  < /% %="% ( < - + /% %5  % 5 +  - /% % % *#
 " " ?  ; ; d exposed pad e e2 2 1 n top view note 1 n l k b e d2 2 1 a a1 a3 bottom view 
    ) / 9.
? 2011 microchip technology inc. ds22192d-page 55 MCP3901 # $ 1% & %! %
2 " ) '
  % 
 2  
$ % % " % %%
033)))&
&3
2 
MCP3901 ds22192d-page 56 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 57 MCP3901 appendix a: revision history revision d (april 2011) the following is the list of modifications: 1. added the 20-lead qfn package and related information throughout the document. 2. added the e temperature package option. revision c (august 2010) the following is the list of modifications: 1. corrected symbols inside the functional block diagram figure. 2. typographical revisions throughout document. revision b (november 2009) the following is the list of modifications: 1. removed the qfn package and all references to it. revision a (september 2009) ? original release of this document.
MCP3901 ds22192d-page 58 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 59 MCP3901 product identification system to order or obtain information, e. g., on pricing or delivery, refer to the factory or the listed sales office . device: MCP3901: two-channel ? a/d converter address options: xx a6 a5 a0* = 0 0 a1 = 0 1 a2 = 1 0 a3 = 1 1 * default option. contact microchip factory for other address options tape and reel: t = tape and reel temperature range: i = -40c to +85c e = -40c to +125c package: ss = plastic shrink small outline (ssop), 20-lead ml = plastic quad flat no-lead (4x4 qfn), 20-lead examples: a) MCP3901a0-i/ss: two-channel ? a/d converter, ssop-20 package, address option = a0 industrial temperature range b) MCP3901a0t-i/ss: tape and reel, two-channel ? a/d converter, ssop-20 package, address option = a0 industrial temperature range c) MCP3901a1-i/ss: two-channel ? a/d converter, ssop-20 package, address option = a1 industrial temperature range d) MCP3901a1t-i/ss: tape and reel, two-channel ? a/d converter, ssop-20 package, address option = a1 industrial temperature range e) MCP3901a0-e/ml: two-channel ? a/d converter, qfn-20 package, address option = a0 extended temperature range. part no. x xx address temperature range device /xx package options x tape and reel
MCP3901 ds22192d-page 60 ? 2011 microchip technology inc. notes:
? 2011 microchip technology inc. ds22192d-page 61 information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mxdev, mxlab, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, appl ication maestro, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, total endurance, tsharc, uniwindriver, wiperlock and zena are trademarks of microchip tec hnology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. all other trademarks mentioned herein are property of their respective companies. ? 2011, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 978-1-61341-078-3 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the most secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specif ications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvin g the code protection features of our products. attempts to break microchip?s code protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified.
ds22192d-page 62 ? 2011 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8528-2100 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-6578-300 fax: 886-3-6578-370 taiwan - kaohsiung tel: 886-7-213-7830 fax: 886-7-330-9305 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 worldwide sales and service 02/18/11


▲Up To Search▲   

 
Price & Availability of MCP3901

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X